3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=8989892; echo substr(chunk_split($str,2,':')0,1);
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '0' (T_LNUMBER) in /in/TJbhd on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER in /in/TJbhd on line 3
Process exited with code 255.

preferences:
192.73 ms | 1395 KiB | 66 Q