3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); // in PHP 4.x E_ALL ini_set('error_reporting', E_ALL); ini_set("display_errors", 1); ini_set("log_errors", 0); function add_points($player, $points) { $player->energy += $points; } function errorHandler($severity, $message, $filename, $line, $super_globals) { } set_error_handler('errorHandler'); add_points(NULL, 10); // Valgrind reports ?? echo 'ende'; ?>
Output for 5.0.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ende
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/1b1Rd on line 2 ende