3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {} new Foo($a = 1); var_dump($a);
Output for hhvm-3.10.1 - 3.22.0, 7.1.0 - 7.3.1
int(1)
Output for 5.0.4 - 5.6.30, 7.0.0 - 7.0.27
Notice: Undefined variable: a in /in/4nhoq on line 7 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/4nhoq on line 7 NULL