3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { function __construct($num=null) { var_dump($GLOBALS['a']); } } $o = new Test($a=2);
Output for 5.0.0 - 7.1.0
int(2)
Output for 4.3.0 - 4.4.9