3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* Accepting NULL value */ function test(stdClass $obj = 1) { var_dump($obj); } test(new stdClass); ?>
Output for 5.3.0 - 5.4.19
Fatal error: Default value for parameters with a class type hint can only be NULL in /in/f7lUg on line 4
Process exited with code 255.