3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public function run() { $a = array(1, 2, 0); array_filter($a, array('self', 'bar')); } static protected function bar() { die('Foo::bar called'); } } Foo::run();

preferences:
39 ms | 402 KiB | 5 Q