3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; for ($i=0; $i<10; $i++){ echo $i." : ".strlen($i)."\n"; if ($i==5){ function strlen($x){return "hello";} } }
Output for git.master_jit, git.master, rfc.property-hooks
0 : 1 1 : 1 2 : 1 3 : 1 4 : 1 5 : 1 6 : 1 7 : 1 8 : 1 9 : 1

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:
88.7 ms | 405 KiB | 5 Q