3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MyClass { } $a = function() { echo('createParam called'); return 'param be here'; }; $v = new MyClass($a());
based on F8Hu2
Output for 7.1.0 - 7.2.0
createParam called
Output for 5.3.18 - 7.0.20