3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ [11, 3], [3, 11], [3, 3], ]; foreach ($tests as [$start, $finish]) { $array = []; while ($start != $finish) { if ($start > 12) { $start = 1; } $array[] = $start++; } $array[] = $finish; echo var_export($array, true) . "\n---\n"; }
Output for rfc.property-hooks, git.master, git.master_jit
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.97 ms | 1566 KiB | 4 Q