3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo (new Bar)->someattr; echo (new Egg)->someattr; exit(0); class Egg extends Bar { public $someattr = 2; } class Bar { public $someattr = 1; }
Output for git.master_jit, git.master
1 Fatal error: Uncaught Error: Class "Egg" not found in /in/P8qJH:4 Stack trace: #0 {main} thrown in /in/P8qJH 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:
57.13 ms | 543 KiB | 4 Q