3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = $y = 1; $z = 0; $t = 3; $flag = null; if($x){ if($y){ $flag = $y.': y'; } else { if($t){ $flag .= $t.': t'; } } if(!$z){ $flag .= $z.': z'; } } if($flag){ echo $flag; } else { echo 'flag is not set.'; }
Output for git.master, git.master_jit, rfc.property-hooks
1: y0: z

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:
41.32 ms | 1479 KiB | 4 Q