Paulund
Subscribe

Laravel Rust and the future of PHP

2 December 2026, 8 min read

On this page
  1. Laravel has moved to Rust
  2. Why this is only possible now
  3. What this means for PHP
  4. The question it leaves

On 1 December Laravel released a beta of Laravel Rust. It is the Laravel framework rebuilt in Rust, and Laravel says it runs 18 times faster than Laravel PHP. The launch post says it is built for a world where "humans will increasingly neither write nor manually read application code at scale".

Taylor Otwell built it in two months with agents. That wasn't possible a year ago, and it wouldn't have made sense either. Once agents write and read the code, you can choose the stack that's best technically. It no longer has to be the one that's easiest for a person to read when production breaks at 2AM.

This post covers what Laravel Rust is, why it's fast, why it only became possible now, and what it means for PHP.

Laravel has moved to Rust

Laravel Rust isn't a small experiment. It has routing, middleware, sessions, authentication, database models, queues, mail, durable workflows, broadcasting and Inertia. Laravel says it is near feature parity with Laravel PHP, and the remaining gaps will close "within the coming weeks". Every new application ships with agent skills that teach coding agents how to write and test it.

The speed comes from the stack. Laravel Rust is built on Axum and Tokio, so the whole framework is asynchronous: HTTP handlers, database queries, the HTTP client, Redis, queues and WebSockets never block. When one request waits on a slow query or a long AI API call, the same threads keep serving other requests. On Laravel Cloud, Laravel's own benchmarks put it 18 times faster than Laravel PHP, "while using significantly less CPU and memory". That means smaller servers, lower tail latency and more traffic per instance. These are Laravel's internal numbers, and I haven't run my own.

The type system does the work a code reviewer used to do. Column names, relationships, validated form input, authorisation checks and secret values are all checked when the code compiles. A request input that doesn't say who may submit it won't compile. Raw SQL captures become bound parameters at compile time, so SQL injection is blocked by how the code is built. The launch post puts it plainly: "strong guardrails, strict compilers, and batteries-included conventions matter more than ever."

Laravel isn't only betting on Rust, either. On the same day, Aaron Francis wrote that Laravel Cloud now runs Rails, Django, Go and Rust apps as well as PHP. In his words, "our own teams write Go and Rust next to PHP now."

Why this is only possible now

Laravel was built for people. Taylor Otwell says so in his letter to the Laravel community. In his words, Laravel was "created to make writing code by hand feel pleasant, expressive, and humane". He then asks where a framework built around human ergonomics stands "in a world where humans are increasingly no longer reading or writing code by hand at scale". And he asks the question every PHP developer is thinking: "how many ambitious, net-new projects in 2027 and beyond are going to choose PHP?"

He built Laravel Rust in two months. He made "heavy use of cloud agents", which made it possible "to reimagine Laravel in two months instead of fifteen years". He also says every API and page of documentation was hand-tuned by him, so a person directed it.

Laravel isn't the first big rewrite like this:

  • Bun moved its JavaScript runtime from Zig to Rust in 11 days. Jarred Sumner's Rewriting Bun in Rust says he used about 50 dynamic workflows in Claude Code, with a pre-release Claude model doing much of the work. It cost around $165,000 at API prices. By hand, he thinks it "would've taken 3 engineers with full context on the codebase about a year". Anthropic owns Bun, and he says so at the top of the post.
  • Ladybird has started moving its browser from C++ to Rust. Andreas Kling ported the JavaScript engine's parser and compiler, about 25,000 lines of Rust, in two weeks with Claude Code and Codex. It ran 52,898 test262 tests and 12,461 of Ladybird's own tests with zero regressions. He says it "was human-directed, not autonomous code generation."

A rewrite used to be the riskiest thing a team could do. You froze features for a year and hoped. Now it takes weeks, because agents do the typing and the test suite proves the result. Bun's tests are written in TypeScript, so they didn't change when the runtime did. Ladybird checked that the Rust and C++ versions gave byte-for-byte identical output.

This changes how you pick a language. We used to pick for the person at the keyboard: a language you can read at a glance, that new hires already know, that you can debug half asleep. If agents write the code and agents read it, those reasons matter much less. What's left are the technical reasons: speed, memory, cost per request, and a compiler strict enough to catch mistakes before they ship.

What this means for PHP

I tweeted about the launch:

Paul@paulund

Laravel has released a beta of Laravel Rust.

It's a full-stack framework built on Axum and Tokio. Laravel says it is near feature parity with Laravel PHP, and its internal benchmarks put it 18x faster on Laravel Cloud.

The launch post says humans will increasingly neither write nor manually read application code at scale.

Bun rewrote its JavaScript runtime from Zig to Rust in 11 days, with a pre-release Claude model doing much of the work. Anthropic bought Bun in December 2025. Ladybird has started porting parts of its JavaScript engine from C++ to Rust, also with AI help.

The reasons to pick Laravel are readable code and queues and cache built in. If nobody reads the code, those matter less, and it doesn't need to be in PHP.

I see this as the start of PHP's decline, even though it still runs about 70% of the websites W3Techs can identify a server language for.

Paul on X, 2 December

I still think this is the start of PHP's decline, but it's worth being precise about what declines.

PHP isn't going anywhere soon. W3Techs says 67.8% of websites whose server-side language it can identify run PHP. Most of that is WordPress and other sites that already exist. PHP 8.6 came out on 19 November, and it's still getting faster. Taylor is clear that Laravel PHP stays too: "Laravel PHP is not going anywhere, and it is not entering maintenance mode." Both frameworks will be built side by side.

What changes is why anyone starts a new project in PHP. The reasons were always about people. PHP was easy to learn, easy to host, quick to read, and Laravel made it pleasant to write. There were lots of PHP developers to hire. Taylor's letter calls the language "an implementation detail" of Laravel's philosophy. When the framework's own creator says that, the language has stopped being the reason to choose it.

Look at it from the agent's side. An agent doesn't care whether code is pleasant to write. It cares whether the compiler catches its mistakes, whether the tests are fast, and whether the result is fast and cheap to run. By Laravel's own numbers, Laravel Rust wins on speed and cost, and its compiler checks far more than PHP can. For the person prompting the agent, asking for a feature in Rust is no harder than asking for it in PHP. The difference shows up in the hosting bill and in the bugs that never ship.

Leaving PHP is also cheaper than it has ever been. A rewrite used to mean freezing a product for a year, so most teams stayed where they were. Bun moved over half a million lines in 11 days. Ladybird moved its parser in two weeks with zero regressions. If your test suite describes what the app does, moving to a faster stack is now a project of weeks, not years.

So does PHP have a future in the agentic world? I think it has a long one, but a smaller one. The sites that already run on PHP will keep running for years, and agents make them cheaper to maintain. But new, ambitious projects will be built on whatever is fastest and safest once a person no longer has to read it. Laravel is already hosting Rails, Django, Go and Rust apps, and its own teams write Go and Rust. That tells you where the people closest to PHP think new projects are going.

The question it leaves

Laravel Rust only works if most of its code isn't read line by line by a person. The replies to my tweet pushed back on exactly that: who fixes it when production breaks at 2AM? I've answered that in do we still need to read AI-written code?

Laravel Rust puts a strict compiler, typed input and agent skills where a person reading the code used to be. If that bet pays off, "a human needs to read it at 2AM" stops being a reason to pick a language. Then PHP loses the argument that kept a lot of us on it.

What I built this week, most Fridays.

What I shipped across my products, the best things I read, and new products before anyone else. Unsubscribe in one click.

Read the latest: Adding security and content checks to Lookout

Earlier in Laravel

24 October 2026Monitoring and alerting in Laravel