3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'football'; $str2 = 'footboll'; $strPos = strspn($str1 , $str2); echo $str1[$strPos] vs $str2[$strPos]; ?>
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'vs' (T_STRING), expecting ',' or ';' in /in/jOHZR on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/jOHZR on line 5
Process exited with code 255.

preferences:
177.23 ms | 1399 KiB | 67 Q