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\n1 => 1\n2 => 2\n3 => 3\n4 => 3\n5 => 3\n6 => 3\n7 => 3\n8 => 3\n9 => 3\n10 => 3\n11 => 3\n12 => 3\n13 => 3\n14 => 3\n15 => 3\n16 => 3\n17 => 3\n18 => 3\n19 => 3\n20 => 3\n21 => 3\n22 => 3\n23 => 3\n24 => 3\n

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