SShortSingh.
Back to feed

PHP Performance Explained: How Opcache, JIT, and AOT Compilers Actually Work

0
·2 views

PHP processes every request by parsing source files, compiling them into opcodes, and executing them via the Zend VM — discarding all that work when the request ends. Opcache addresses this by caching compiled opcodes in memory, eliminating redundant re-parsing and delivering the single largest performance gain available to PHP applications at minimal cost. JIT compilation goes further by converting frequently executed code into native machine code at runtime, though its benefits are largely limited to computation-heavy workloads rather than typical web requests. Ahead-of-time (AOT) compilation, as demonstrated by the Swoole team's open-source TypePHP project, takes a different approach by compiling PHP directly into a standalone native binary before deployment, bypassing the need for a PHP interpreter entirely. Unlike the first three techniques, AOT requires trade-offs in language flexibility but opens the door to entirely new use cases for PHP beyond traditional web applications.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

GLM 5.3 Forces Mandatory Thinking, Cuts Cost Per Correct Answer by 60%

Z.ai has released GLM 5.3, a post-trained upgrade to GLM 5.2 that shares identical pricing at $1.40 per million input tokens and $4.40 per million output tokens. Unlike its predecessor, GLM 5.3 makes reasoning mandatory — attempts to disable thinking return an HTTP 400 error, and only low, high, and max effort levels are supported. In benchmark testing across 11 verifiable tasks run three times each, GLM 5.3 at maximum reasoning effort answered all 33 correctly at $0.00468 per correct answer, roughly 2.5 times cheaper than GLM 5.2 at the same setting because the new model reasons about half as much. A smaller companion model, GLM 5.3 Flash, achieved 31 of 33 correct answers at approximately one-tenth the cost, featuring 320 billion total parameters with only 18 billion activated per token. Both models offer a 1 million-token context window and show significant gains over GLM 5.2 on agent, coding, and automation benchmarks.

0
ProgrammingDEV Community ·

Crossplane Provider OVH 2.17.0 Delivers Full OVHcloud API Coverage for Kubernetes

The release of provider-ovh 2.17.0 brings complete OVHcloud API schema coverage natively within Crossplane control planes, eliminating the need for hybrid Terraform pipelines or custom shell scripts. Built using Upjet's schema generation tooling, the new version maps every OVHcloud API resource directly into Kubernetes Custom Resource Definitions, enabling continuous state reconciliation. Platform teams can now manage OVHcloud resources — including Managed Kubernetes clusters, private networking, IAM, and DBaaS — through unified GitOps workflows using tools like ArgoCD or Flux. Previously, incomplete provider coverage left critical infrastructure gaps that caused undetected configuration drift and required manual provisioning outside declarative pipelines. The update positions OVHcloud as a fully Kubernetes-native sovereign cloud option for European platform engineering teams seeking vendor-agnostic infrastructure automation.

0
ProgrammingDEV Community ·

EU State of the Union 2026 on Sept 16 to Signal Digital and AI Policy Direction

European Commission President Ursula von der Leyen is scheduled to deliver the 2026 State of the Union address at the European Parliament in Strasbourg on 16 September 2026, from 09:00 to 11:50 CEST, with live streaming available. The address is expected to reflect the Commission's priorities on AI regulation, technology sovereignty, and digital policy, though it does not itself constitute new law or binding obligations. Key areas businesses should monitor include updates to AI regulatory frameworks, Europe's technology sovereignty package, and digital-by-default and open-source policy instruments. Companies operating in AI, digital services, or European technology infrastructure are advised to assess how the speech connects regulation, competitiveness, and investment to their specific operations. Observers are cautioned not to assume specific commitments or proposals before the address is formally delivered.