3v4l.org

run code in 200+ php & hhvm versions
<?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(); ?>
Output for 5.5.0 - 5.6.40, hhvm-3.11.1 - 3.22.0, 7.0.0 - 7.3.6
test