3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 10; $i >= 0; --$i){ if ($i == ($i < 1)){ $msg = 'really'; }else if ($i == ($i < 3)) { $msg = 'quite bad'; }else if ($i == ($i < 5)) { $msg = 'pay attention'; }else if ($i == ($i <= 9)){ $msg = 'quite good'; }else if ($i == ($i <= 10)){ $msg = 'congrat'; }else{ $msg = 'Oops'; } echo $i.' '.$msg . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
10 congrat 9 quite good 8 quite good 7 quite good 6 quite good 5 quite good 4 pay attention 3 pay attention 2 quite bad 1 quite bad 0 Oops

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