3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class fun { } $a = null; $fun = new fun($a = 123); var_dump($a); var_dump($fun);
Output for 7.1.0 - 7.3.1
int(123) object(fun)#1 (0) { }
Output for 5.0.0 - 7.0.20
NULL object(fun)#1 (0) { }
Output for 4.3.0 - 4.4.9
NULL object(fun)(0) { }