3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum F: string { case PHP = "Rocks!"; } const E = F::PHP; const D = new D; var_dump(x::C->{$p = 'p'}[1](...)()?->{$p . $c = 2}::PHP->value[$c]); class X { const C = D; } class D { public array $p = [1 => 'foo']; public F $p2 = E; } function foo() { return new D; }
Output for git.master, git.master_jit
string(1) "c"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.66 ms | 860 KiB | 4 Q