3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface MyCountableInterface { public function count($mode); } class MyCountable implements MyCountableInterface { public function count($myFilterArgument = null) { } } $myCountable->count(1); count($myCountable); count($myCountable, COUNT_NORMAL); count($myCountable, COUNT_RECURSIVE);

preferences:
34.56 ms | 402 KiB | 5 Q