3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B { public function __construct() { die("what?"); } } $a = new A(new B)
Output for 5.4.0 - 5.4.6
Parse error: syntax error, unexpected end of file in NUQA8 on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.16
Parse error: syntax error, unexpected $end in NUQA8 on line 15
Process exited with code 255.

preferences:
168.16 ms | 1395 KiB | 31 Q