3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function thing($a = 'asdf'); } class MyFoo implements Foo { public function thing($a) { var_dump($a); } } $foo = new MyFoo(); $foo->thing();

preferences:
35.07 ms | 402 KiB | 5 Q