3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpException extends \Exception { const HTTP_NOT_FOUND = 404; const ERROR_404_RESPONSE = static::HTTP_NOT_FOUND . ' - Page not found' // One off error messages can use this method... public static function notFound() { switch($num) { case 404: return new static("Error code $num: " . static::ERROR_404_RESPONSE); break; } } } HttpException::notFound();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0200.05720.06
7.0.10.0070.08320.12
7.0.00.0030.08320.32
5.6.170.0230.05020.77
5.6.160.0030.08720.56
5.6.150.0100.05318.15
5.6.140.0070.07318.14
5.6.130.0000.08718.28
5.6.120.0070.05021.03
5.6.110.0100.08321.00
5.6.100.0030.04321.13
5.6.90.0200.02320.98
5.6.80.0070.05720.37
5.5.310.0370.07320.27
5.5.300.0070.06718.08
5.5.290.0000.04317.91
5.5.280.0000.09320.77
5.5.270.0100.05320.88
5.5.260.0100.05720.64
5.5.250.0070.04020.66
5.5.240.0130.08320.18

preferences:
143.34 ms | 1386 KiB | 7 Q