3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MySQL{ public $debugMode = 0; private $sqlHandle; private $hostname; private $username; private $password; private $dbName; private $queryHandle; function __construct() { } } array_map(array('MySQL', 'escapeContent'), array(1,2,3)); ?>
Output for 5.3.0 - 7.1.0
Warning: array_map() expects parameter 1 to be a valid callback, class 'MySQL' does not have a method 'escapeContent' in /in/7fWsJ on line 18
Output for 5.0.0 - 5.2.17
Warning: array_map(): The first argument, 'MySQL::escapeContent', should be either NULL or a valid callback in /in/7fWsJ on line 18
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7fWsJ on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7fWsJ on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/7fWsJ on line 5
Process exited with code 255.