3v4l.org

run code in 500+ PHP versions simultaneously
<?php const DefaultX = new X(); class X { public const D = DefaultX; public int $n = 5; }
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Undefined constant "DefaultX" in /in/MeXTR:4 Stack trace: #0 {main} thrown in /in/MeXTR on line 4
Process exited with code 255.

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:
46.05 ms | 851 KiB | 4 Q