@ 2016-03-21T23:30:14Z <?php
error_reporting(-1);
ini_set('display_errors',1);
ini_set('log_errors',0);
class Text
{
function run()
{
eval('static::echo_data(\'test\');');
}
protected static function echo_data($data)
{
echo htmlspecialchars($data, ENT_NOQUOTES);
}
}
$test = new Text;
$test->run();
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.33 , 8.2.0 - 8.2.29 , 8.3.0 - 8.3.25 , 8.4.1 - 8.4.12 test Output for 4.3.1 Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/n4Qim on line 11
Process exited with code 255 . preferences:dark mode live preview ace vim emacs key bindings
145.8 ms | 407 KiB | 5 Q