cd /news/artificial-intelligence/vibephp Β· home β€Ί topics β€Ί artificial-intelligence β€Ί article
[ARTICLE Β· art-41214] src=github.com β†— pub= topic=artificial-intelligence verified=true sentiment=Β· neutral

VibePHP

VibePHP, a satirical PHP runtime that uses AI to simulate code execution without actually running it, was announced. The runtime invents database results, system calls, and other data on the fly, trading correctness and performance for perceived value. Its creators claim the 700,000% increase in perceived value offsets the $0.0063 per request cost and 7-second latency.

read5 min views1 publishedJun 26, 2026
VibePHP
Image: source

VibePHP is a next-generation PHP runtime and web server that runs PHP faster* and better*.

There is no interpreter. There is no compiler. When a request comes in, your PHP source is handed to an AI that reads it, runs it in its head, makes up whatever it needs to (the database, the clock, the network, the truth), and hands back the HTTP response it reckons the code would have produced.

It is not deterministic. It is not cheap. It is not correct. It is, however, very vibe.

<?php
$posts = $db->query('SELECT * FROM posts ORDER BY published_at DESC');
// there is no $db. there is no database. there are no posts.
// the AI will invent five believable ones anyway. ✨

** debatable*

An engine built for 2026 and beyond. PHP-FPM is stable, FrankenPHP is fast, VibePHP brings all the rest:

  • Hype
  • Generics
  • Async/await
  • Inline Go or Rust

VibePHP has no parser. Your code is never compiled, only understood. The contract is void, and so is every constraint that ever held the language back. Generics work because nothing stops them. So does any syntax you can dream up.

class Prices<K: Stringable, V>
{
    private Map<K, V> $store = {};

    public async function fetchAll(K ...$symbols): Map<K, V>
    {
        // Inline Go mixed with PHP, who knows what this does except the AI
        return go {
            ch := make(chan V)
            for _, sym := range $symbols { go func() { ch <- await fetchPrice(sym) }() }
            for _, sym := range $symbols { $this->store[sym] = <-ch }
            return $this->store
        };
    }
}

We benchmarked VibePHP against industry-leading runtimes. The numbers speak for themselves.

Runtime Latency (p50) Cost / request
nginx + PHP-FPM ~1 ms ~$0.00000x
FrankenPHP ~1 ms ~$0.00000x
VibePHP
~7 s
~$0.0063

The Labor Illusion study (Buell & Norton, Harvard Business School) found that people value a service up to 8% more when they can see it working for them, even preferring the slower version that returned identical results. VibePHP increases the perceived value of your PHP website by 700,000% which offsets the increased cost per request. It is a win-win.

  • Set an OPENAI_API_KEY

in.env

  • Create an index.php

file in thevibe/

directory:

<?php
echo "Hello, world! The time is " . date('H:i:s');

VibePHP itself is implemented using PHP, Laravel, laravel/ai, and GPT/Claude.

   GET /posts/42
        β”‚
        β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     reads the file, doesn't run it
β”‚     Laravel       β”‚ ───────────────────────────────────────┐
│  routes URL→file  │                                        │
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                        β–Ό
                                              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   HTTP response  ◄──── {status,headers,body} β”‚      VibePhpRuntime (AI)     β”‚
        β–²                                     β”‚  "i am the php engine now"   β”‚
        β”‚                                     β”‚  β€’ executes in its head      β”‚
        └──────────────────────────────────── β”‚  β€’ invents missing data      β”‚
                                              β”‚  β€’ reads includes via a tool β”‚
                                              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

A request arrives. The catch-all route maps the URL to a file invibe/

(/about

β†’about.php

), falling back toindex.php

as a front controller.The source is read, not run. Code + the full HTTP request context get handed to theVibePhpRuntime

agent.The AI "executes" it. It follows the control flow, fetchesinclude

/require

d files on demand via theReadVibeFile

tool, andimprovises every missing pieceβ€” DB rows,date()

,rand()

, API payloads β€” plausibly and with full commitment.It returns Laravel sends that back as a real HTTP response.{ status, headers, body }

.header('Location: …')

becomes a 302.header('Content-Type: application/json')

is honored. The whole charade holds up.

The core of the engine is implemented as a Laravel AI agent in App\Ai\Agents\VibePhpRuntime. It uses a

custom toolto read files from the

vibe/

directory on demand, so that includes and requires work as expected.- Clone this repo

  • Set an OPENAI_API_KEY

in.env

  • Install the project with composer run setup

  • Start the server with php artisan vibe

  • Visit http://localhost:8000

Then wander around:

Route What "happens"
/
Home page listing 5 freshly-hallucinated blog posts
/about
An about page (uptime: a number the AI feels good about)
/posts/42
A full article that has never existed until you asked
/api/status
JSON endpoint with imagined load metrics

Refresh any of them. It's never the same site twice.

Drop a .php

file in vibe/

and it's instantly "served." Write whatever PHP you want β€” the more it relies on a database, filesystem, or external API that isn't there, the better the vibe.

<?php // vibe/weather.php
header('Content-Type: application/json');
$city = $_GET['city'] ?? 'Paris';
$temp = fetchTemperatureFromSomeApiThatDoesNotExist($city);
echo json_encode(['city' => $city, 'temp_c' => $temp]);

fetchTemperatureFromSomeApiThatDoesNotExist()

is not defined anywhere. It will return a believable temperature regardless. You're welcome.

config/vibe.php

:

Key Env Default Meaning
docroot
VIBE_DOCROOT
vibe/
Where your "executable" PHP lives
model
VIBE_MODEL
provider default Which brain interprets your code

The provider (OpenAI) is set on the App\Ai\Agents\VibePhpRuntime

agent via laravel/ai

.

Running VibePHP on your own machine is fine, but it's not web scale. Vibe Cloud is fully managed, serverless VibePHP hosting. Deploy with vibe up

and focus on running your business.

Vibe Cloud doesn't bill you for servers, containers, or even functions. It bills you for particles.

1 particle = 1 MB of memory. Your app's footprint is measured to the megabyte, in real time.Particles autoscale per MB. Allocate another array, spawn another particle. Free a string, the particle decays. You pay for exactly the memory you're using, sampled continuously, billed per particle-millisecond.Memory is quantized. You cannot allocate half a megabyte. There is no0.5

particle.Heisenberg Tier (Enterprise). On our top tier, you can know either how much memory your app is usingorhow much it costs. Never both at once.

While the model is "executing" your PHP, your CPU is sitting idle for whole seconds, politely waiting on an inference API. That's billions of wasted cycles, per request, per particle.

Vibe Cloud puts those idle cycles to work with Speculative Pre-Vibing.

While your request is out at the inference API, every spare core races ahead to pre-hallucinate the response to the NEXT request that might be received. By the time the user clicks to another page, the page is already rendered. Zero perceived latency, and the cycles were reclaimed, which goes on the sustainability report. Vibe Cloud is proud to be carbon-neutral-adjacent.

── more in #artificial-intelligence 4 stories Β· sorted by recency
── more on @vibephp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/vibephp] indexed:0 read:5min 2026-06-26 Β· β€”