3v4l.org

run code in 300+ PHP versions simultaneously
<?php function html($value) { return htmlentities($value); } class Foo { function html($value) { return htmlentities($value); } } $value = '123'; $obect = new Foo(); htmlentities($value); html($value); $object->$func($value); call_user_func($func, $value); call_user_func(array($object, $func), $value); call_user_func_array($func, array($value)); call_user_func_array(array($object, $func), array($value));

preferences:
51.42 ms | 402 KiB | 5 Q