3v4l.org

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

preferences:
26.02 ms | 402 KiB | 5 Q