3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); ini_set('display_errors', 1); date_default_timezone_set('UTC'); set_time_limit(0); set_error_handler(function ($errno, $errstr, $errfile, $errline) { // error was suppressed with the @-operator if (!(error_reporting() & $errno)) { return false; } throw new \ErrorException($errstr, 0, $errno, $errfile, $errline); }); ini_set('error_reporting', E_ALL & ~E_USER_DEPRECATED); ini_set('display_errors', 0); ini_set('date.timezone', 'Europe/Berlin'); @trigger_error('Test', E_USER_DEPRECATED);
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.22, 8.1.0 - 8.1.9

preferences:
205.63 ms | 409 KiB | 5 Q