3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class First { } class Second extends First { } function x(First $f) { var_dump($f); } x(new Second());