3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("BAR",5); define("BAZ",BAR+10); echo "BAZ: ",BAZ; const BAR = 1; const BAZ = BAR + 1; echo "\nBAZ: ",BAZ;
Output for git.master, git.master_jit, rfc.property-hooks
BAZ: 15 Warning: Constant BAR already defined in /in/4EoQQ on line 6 Warning: Constant BAZ already defined in /in/4EoQQ on line 7 BAZ: 15

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:
40.65 ms | 401 KiB | 8 Q