3v4l.org

run code in 300+ PHP versions simultaneously
<?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); } 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/OFoED 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/OFoED on line 18
Process exited with code 255.

preferences:
181.79 ms | 1395 KiB | 61 Q