3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Testing: $var\n"; } class foo { var $baz = "test"; function bar( $str ) { if( is_callable( $this->baz )) { $this->baz( $str ); } } } $foo = new foo; $foo->bar("bla"); // fatal error

preferences:
57.79 ms | 402 KiB | 5 Q