3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { function __construct($n) { echo $n; } } $o = new Test($a=9); var_dump($a);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
9int(9)
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: a in /in/m7AQb on line 8 NULL