<?php interface fooface {} function needsfoo( fooface $foo ) { return true ; } var_dump( needsfoo( new class implements fooface {} ) ) ;
You have javascript disabled. You will not be able to edit any code.