3v4l.org

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