3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B {function __construct(){}} class C {function C(){}} $a = null; new A($a = 123); var_dump($a); $b = null; new B($b = 456); var_dump($b); $c = null; new C($c = 789); var_dump($c); a<yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy y echo 'wat';
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'y' (T_STRING) in /in/c2a8G on line 21
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/c2a8G on line 21
Process exited with code 255.

preferences:
181 ms | 1395 KiB | 61 Q