3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(0, 256) as $i) { echo "$i -- as int: ", ctype_digit($i), "; as string: ", ctype_digit((str)$i), "\n"; }
Output for 5.4.0 - 5.4.18
Parse error: syntax error, unexpected '$i' (T_VARIABLE) in /in/EsEOD on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/EsEOD on line 4
Process exited with code 255.