3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ [11, 3], [3, 11], [3, 3], ]; foreach ($tests as [$start, $finish]) { $array = $start > $finish ? array_merge(range($start, 12), range(1, $finish)) : range($start, $finish); echo var_export($array, true) . "\n---\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 11, 1 => 12, 2 => 1, 3 => 2, 4 => 3, ) --- array ( 0 => 3, 1 => 4, 2 => 5, 3 => 6, 4 => 7, 5 => 8, 6 => 9, 7 => 10, 8 => 11, ) --- array ( 0 => 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:
41.84 ms | 1528 KiB | 4 Q