3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($from, $to) { for ($i = $from; $i <= $to; $i++) { yield $i; } }?> <table><?= implode("\n", array_map(function($i) {return sprintf('<tr><td>%s</td></tr>', chr($i));}, xrange(ord('a'), ord('z'))); ?></table>
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '$i' (T_VARIABLE) in /in/J3ErD on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/J3ErD on line 3
Process exited with code 255.

preferences:
180.84 ms | 1395 KiB | 65 Q