3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpException extends \Exception { const HTTP_NOT_FOUND = 404; const ERROR_404_RESPONSE = 'Page not found'; // One off error messages can use this method... public static function notFound() { throw new static("Error code 404: " . static::ERROR_404_RESPONSE); } } 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)
8.3.60.0000.01516.88
8.3.50.0090.01321.09
8.3.40.0100.00318.57
8.3.30.0070.00718.47
8.3.20.0080.00020.20
8.3.10.0000.00823.65
8.3.00.0040.00421.90
8.2.180.0040.01116.75
8.2.170.0140.00422.96
8.2.160.0090.00622.07
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00820.87
8.2.120.0000.00726.35
8.2.110.0110.00020.35
8.2.100.0040.00818.03
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00318.04
8.2.50.0040.00418.09
8.2.40.0000.00822.29
8.2.30.0040.00419.31
8.2.20.0000.00717.61
8.2.10.0000.00717.93
8.2.00.0030.00517.91
8.1.280.0080.00825.92
8.1.270.0110.00722.18
8.1.260.0060.00328.09
8.1.250.0000.00728.09
8.1.240.0030.00623.80
8.1.230.0000.01117.45
8.1.220.0060.00617.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0000.00720.75
8.1.150.0080.00020.54
8.1.140.0060.00319.44
8.1.130.0030.00317.64
8.1.120.0070.00017.38
8.1.110.0000.00717.30
8.1.100.0020.00517.27
8.1.90.0040.00417.36
8.1.80.0050.00617.45
8.1.70.0040.00417.38
8.1.60.0030.00517.48
8.1.50.0070.00317.36
8.1.40.0000.01117.55
8.1.30.0040.00417.52
8.1.20.0030.00517.54
8.1.10.0000.00817.51
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00718.35
8.0.270.0000.00717.26
8.0.260.0040.00417.19
8.0.250.0070.00017.07
8.0.240.0040.00416.98
8.0.230.0080.00016.97
8.0.220.0000.00716.98
8.0.210.0000.00716.82
8.0.200.0000.00716.90
8.0.190.0030.00617.04
8.0.180.0000.01016.90
8.0.170.0050.00216.95
8.0.160.0000.00716.94
8.0.150.0050.00216.88
8.0.140.0080.00316.91
8.0.130.0030.00313.34
8.0.120.0030.00516.93
8.0.110.0040.00416.98
8.0.100.0040.00416.94
8.0.90.0000.00716.89
8.0.80.0040.01816.97
8.0.70.0040.00416.75
8.0.60.0000.00716.97
8.0.50.0000.00716.95
8.0.30.0090.00817.18
8.0.20.0080.01017.40
8.0.10.0000.00816.96
8.0.00.0140.00616.89
7.4.330.0050.00016.77
7.4.320.0030.00316.54
7.4.300.0000.00816.53
7.4.290.0000.00716.54
7.4.280.0040.00416.50
7.4.270.0060.00016.51
7.4.260.0030.00316.42
7.4.250.0080.00016.48
7.4.240.0000.00716.41
7.4.230.0000.00716.54
7.4.220.0120.00616.38
7.4.210.0030.01016.42
7.4.200.0030.00316.35
7.4.160.0060.01516.51
7.4.150.0000.01817.40
7.4.140.0110.01117.86
7.4.130.0090.01216.61
7.4.120.0080.01016.48
7.4.110.0100.00716.64
7.4.100.0150.00616.72
7.4.90.0000.01616.65
7.4.80.0070.01719.39
7.4.70.0000.01716.42
7.4.60.0060.01216.50
7.4.50.0090.00616.51
7.4.40.0110.01116.63
7.4.30.0070.01416.56
7.4.00.0070.01014.83
7.3.330.0110.00013.16
7.3.320.0030.00313.19
7.3.310.0040.00416.31
7.3.300.0070.00016.21
7.3.290.0100.00816.36
7.3.280.0070.00916.30
7.3.270.0090.00917.40
7.3.260.0130.00316.47
7.3.250.0130.00616.38
7.3.240.0080.00916.41
7.3.230.0130.00316.55
7.3.210.0040.01216.28
7.3.200.0070.01019.39
7.3.190.0060.01216.41
7.3.180.0100.00716.38
7.3.170.0070.01016.50
7.3.160.0040.01116.51
7.3.120.0120.00614.68
7.3.110.0110.00714.77
7.3.100.0100.00314.87
7.3.90.0060.00914.88
7.3.80.0100.00314.49
7.3.70.0110.00714.79
7.3.60.0040.01114.50
7.3.50.0110.00314.82
7.3.40.0090.00014.55
7.3.30.0060.00314.59
7.3.20.0060.00916.45
7.3.10.0040.01216.63
7.3.00.0030.01016.77
7.2.330.0100.01316.65
7.2.320.0110.00616.35
7.2.310.0060.01216.69
7.2.300.0080.00816.51
7.2.290.0100.00616.64
7.2.250.0030.01714.72
7.2.240.0060.01015.10
7.2.230.0060.01214.97
7.2.220.0030.00914.85
7.2.210.0070.00714.97
7.2.200.0070.01014.84
7.2.190.0040.01115.02
7.2.180.0060.00614.93
7.2.170.0080.00614.84
7.2.120.0110.00516.29
7.2.110.0000.01416.75
7.2.100.0100.01016.53
7.2.90.0110.00716.60
7.2.80.0140.00716.39
7.2.70.0110.00816.99
7.2.60.0090.00816.96
7.2.50.0110.00416.84
7.2.40.0130.00316.84
7.2.30.0120.00617.00
7.2.20.0080.00816.87
7.2.10.0100.01016.91
7.2.00.0030.01217.91
7.1.330.0070.01015.52
7.1.320.0060.00915.60
7.1.310.0030.01315.73
7.1.300.0000.01415.54
7.1.290.0070.00715.66
7.1.280.0030.00715.46
7.1.270.0000.01115.66
7.1.260.0080.00815.79
7.1.240.0100.00515.60
7.1.230.0110.00715.71
7.1.220.0140.00315.72
7.1.210.0090.00615.60
7.1.200.0090.00315.67
7.1.190.0110.00715.71
7.1.180.0130.00415.81
7.1.170.0090.00915.61
7.1.160.0030.01315.63
7.1.150.0120.00315.38
7.1.140.0090.01015.65
7.1.130.0150.00015.60
7.1.120.0090.00615.48
7.1.110.0120.00415.69
7.1.100.0040.00816.76
7.1.90.0160.00315.60
7.1.80.0100.00715.80
7.1.70.0080.00516.51
7.1.60.0040.01517.44
7.1.50.0100.00616.16
7.1.40.0110.00415.63
7.1.30.0060.01115.57
7.1.20.0080.00515.38
7.1.10.0170.00015.75
7.1.00.0090.03618.84
7.0.320.0080.00915.04
7.0.310.0080.00615.05
7.0.300.0140.00215.53
7.0.290.0090.00615.12
7.0.280.0080.00815.20
7.0.270.0130.00015.36
7.0.260.0090.00515.21
7.0.250.0100.00715.20
7.0.240.0090.00415.19
7.0.230.0750.00015.42
7.0.220.0110.00415.47
7.0.210.0000.01415.38
7.0.200.0070.00315.90
7.0.190.0130.00315.38
7.0.180.0110.00315.44
7.0.170.0180.00015.40
7.0.160.0050.00615.52
7.0.150.0060.00615.20
7.0.140.0090.00515.16
7.0.130.0040.01215.14
7.0.120.0550.00015.27
7.0.110.0060.00615.19
7.0.100.0080.00515.45
7.0.90.0100.00315.44
7.0.80.0090.00915.21
7.0.70.0140.00015.36
7.0.60.0190.03818.63
7.0.50.0150.03616.70
7.0.40.0160.04316.70
7.0.30.0160.02416.81
7.0.20.0170.03216.75
7.0.10.0070.03316.81
7.0.00.0050.05016.84
5.6.380.0080.00814.55
5.6.370.0160.00014.24
5.6.360.0090.00614.41
5.6.350.0180.00014.22
5.6.340.0100.00514.36
5.6.330.0100.00514.14
5.6.320.0110.00814.40
5.6.310.0120.00414.34
5.6.300.0090.00614.05
5.6.290.0090.00614.40
5.6.280.0110.03017.80
5.6.270.0060.01214.28
5.6.260.0140.00014.36
5.6.250.0100.00214.50
5.6.240.0100.00414.12
5.6.230.0120.00014.54
5.6.220.0050.01014.40
5.6.210.0100.04117.40
5.6.200.0080.04616.12
5.6.190.0100.02217.18
5.6.180.0190.04017.39
5.6.170.0120.03717.28
5.6.160.0070.02317.33
5.6.150.0070.04416.22
5.6.140.0110.04116.22
5.6.130.0050.04816.25
5.6.120.0090.04317.52
5.6.110.0030.04817.64
5.6.100.0070.02417.59
5.6.90.0000.02817.72
5.6.80.0100.04217.32
5.6.70.0130.00314.17
5.6.60.0100.01014.25
5.6.50.0120.00414.05
5.6.40.0130.00314.23
5.6.30.0110.00414.25
5.6.20.0100.00514.31
5.6.10.0100.00714.08
5.6.00.0090.00613.91
5.5.380.0110.00411.32
5.5.370.0070.00411.27
5.5.360.0070.00411.27
5.5.350.0130.03615.79
5.5.340.0100.04014.61
5.5.330.0060.02115.79
5.5.320.0280.02815.81
5.5.310.0300.03315.81
5.5.300.0100.02314.61
5.5.290.0080.02014.63
5.5.280.0030.03816.02
5.5.270.0090.04116.08
5.5.260.0090.03715.97
5.5.250.0110.03515.87
5.5.240.0080.03815.77
5.5.230.0070.00711.27
5.5.220.0090.00611.27
5.5.210.0060.00611.27
5.5.200.0070.00611.27
5.5.190.0080.00411.27
5.5.180.0090.00611.27
5.5.170.0080.00414.05
5.5.160.0080.00011.27
5.5.150.0070.00411.27
5.5.140.0000.01011.27
5.5.130.0080.00311.27
5.5.120.0070.00211.32
5.5.110.0100.00311.27
5.5.100.0000.01111.27
5.5.90.0130.00011.27
5.5.80.0110.00711.27
5.5.70.0050.00911.27
5.5.60.0060.00611.27
5.5.50.0000.00911.27
5.5.40.0030.00711.27
5.5.30.0120.00011.27
5.5.20.0120.00411.27
5.5.10.0110.00411.27
5.5.00.0030.01011.27

preferences:
50.78 ms | 401 KiB | 5 Q