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() { } } static function escapeContent($value) { //$value = get_magic_quotes_gpc()?stripslashes($value):$value; //return mysql_real_escape_string($value, $this->sqlHandle); return true; } array_map(array('MySQL', 'escapeContent'), array(1,2,3)); ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'escapeContent' (T_STRING), expecting '(' in /in/fsZsl on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_FUNCTION, expecting T_PAAMAYIM_NEKUDOTAYIM in /in/fsZsl on line 18
Process exited with code 255.