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 = new MyCountable; $myCountable->count(1); count($myCountable); count($myCountable, COUNT_NORMAL); count($myCountable, COUNT_RECURSIVE);

preferences:
36.88 ms | 402 KiB | 5 Q