3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array(-5,0,4,9,4,3,-2,0,1,8); for ($i=0;$i<=9;$i++) { if ($list[$i] >= 4) { echo "this words so far"; } else { echo "nope".$list[$i]; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
nope-5nope0this words so farthis words so farthis words so farnope3nope-2nope0nope1this words so far

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.09 ms | 401 KiB | 8 Q