3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Testing: $var\n"; } class foo { var $arr = array("test"); function bar($str) { var_dump($this->arr[0]); ($this->arr[0])($str); } } $foo = new foo; $foo->bar("bla");

preferences:
43.16 ms | 402 KiB | 5 Q