3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A {} class B {public function __construct()} $a = null; new A($a = 123); var_dump($a); $b = null; new B($b = 456); var_dump($b);
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '}', expecting ';' or '{' in /in/A5vXj on line 4
Process exited with code 255.