3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1 $b = 2
Output for 8.0.0 - 8.0.25, 8.1.0 - 8.1.12
Parse error: syntax error, unexpected variable "$b" in /in/dc2uB on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.32
Parse error: syntax error, unexpected '$b' (T_VARIABLE) in /in/dc2uB on line 3
Process exited with code 255.

preferences:
292.6 ms | 1396 KiB | 254 Q