3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); } } for ($i=0;$i<70;$i++){ $test = new Text; $test->run(); echo("\n"); } ?>
based on nJ2Ok
Output for 5.5.0 - 7.3.0rc3
test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test