3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); class Foo {}; function takesFoo(Foo $foo = null) { var_dump($foo); } takesFoo(new Foo); takesFoo(); takesFoo(null);