3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Accepting NULL value */ function test(stdClass $obj) { printf($obj); } test(new stdclass('a')); ?>

preferences:
39.4 ms | 402 KiB | 5 Q