3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("EOL", "\n"); $max = 40; $start = ord("a"); $limit = ord("y"); $arr = array(); $arr[0] = chr($start); while($max--){ for($i = 0; $i <= (count($arr) - 1); $i++){ if(ord($arr[$i]) > $limit){ $arr[$i] = chr($start); if(isset($arr[$i + 1])){ $arr[$i+1] = chr(ord($arr[$i+1]) + 1); } else { $arr[$i+1] = chr($start); } } } echo "[", implode("][", array_reverse($arr)), "]", EOL; $arr[0]++; }
Output for git.master, git.master_jit, rfc.property-hooks
[a] [b] [c] [d] [e] [f] [g] [h] [i] [j] [k] [l] [m] [n] [o] [p] [q] [r] [s] [t] [u] [v] [w] [x] [y] [a][a] [a][b] [a][c] [a][d] [a][e] [a][f] [a][g] [a][h] [a][i] [a][j] [a][k] [a][l] [a][m] [a][n] [a][o]

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