3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l = array_fill(0, 25, ''); function clamp($n) { return ($n > 3) ? 3 : $n; } foreach($l as $i=>$b) { echo $i . ' => ' . clamp($i) . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
0 => 0 1 => 1 2 => 2 3 => 3 4 => 3 5 => 3 6 => 3 7 => 3 8 => 3 9 => 3 10 => 3 11 => 3 12 => 3 13 => 3 14 => 3 15 => 3 16 => 3 17 => 3 18 => 3 19 => 3 20 => 3 21 => 3 22 => 3 23 => 3 24 => 3

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