3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=assddd; echo substr $a[4]; ?>
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
Parse error: syntax error, unexpected '$a' (T_VARIABLE), expecting ',' or ';' in /in/H70YQ on line 3
Process exited with code 255.

preferences:
185.34 ms | 1395 KiB | 68 Q