3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<10; $i++){ if ($i %2==0) { echo "$i is even"; } else { echo "$i is odd"; } if (sqrt($i) == floor(sqrt($i))) echo " and is a perfect square"; echo ".<br />\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
0 is even and is a perfect square.<br /> 1 is odd and is a perfect square.<br /> 2 is even.<br /> 3 is odd.<br /> 4 is even and is a perfect square.<br /> 5 is odd.<br /> 6 is even.<br /> 7 is odd.<br /> 8 is even.<br /> 9 is odd and is a perfect square.<br />

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:
107.9 ms | 406 KiB | 5 Q