3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} function foo (Foo ...$params) { var_dump($params); } foo(new Foo, new Bar);

preferences:
51.98 ms | 402 KiB | 5 Q