3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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->html($value); call_user_func('html', $value); call_user_func(array($object, 'html'), $value); call_user_func_array($func, array($value)); call_user_func_array(array($object, 'html'), array($value));
based on qcRel
Output for 7.0.5 - 7.1.0
Notice: Undefined variable: object in /in/sTKAB on line 22 Fatal error: Uncaught Error: Call to a member function html() on null in /in/sTKAB:22 Stack trace: #0 {main} thrown in /in/sTKAB on line 22
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: object in /in/sTKAB on line 22 Fatal error: Uncaught Error: Call to a member function html() on unknown in /in/sTKAB:22 Stack trace: #0 {main} thrown in /in/sTKAB on line 22
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Notice: Undefined variable: object in /in/sTKAB on line 22 Fatal error: Call to a member function html() on null in /in/sTKAB on line 22
Process exited with code 255.
Output for 5.0.4 - 5.5.37
Notice: Undefined variable: object in /in/sTKAB on line 22 Fatal error: Call to a member function html() on a non-object in /in/sTKAB on line 22
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: object in /in/sTKAB on line 22 Fatal error: Call to a member function html() on a non-object in /in/sTKAB on line 22
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Call to a member function on a non-object in /in/sTKAB on line 22
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to a member function on a non-object in /in/sTKAB on line 22