3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='h1; $a++; echo $a; $b='h1'; $b+=1; echo $b;
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected 'h1' (T_STRING) in /in/PsoBl on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/PsoBl on line 6
Process exited with code 255.

preferences:
191.74 ms | 1395 KiB | 68 Q