3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error_handler = function($severity, $message, $filename, $lineno) { echo "error handled"; throw new ErrorException($message, 0, $severity, $filename, $lineno); }; $exception_handler = function($exception) { echo "exception handled"; self::invokeHttpError(500); }; set_error_handler($error_handler, E_ALL | E_STRICT); set_exception_handler($exception_handler); ///////////////////////////////////////////////////////// throw new ErrorException($message, 0, $severity, $filename, $lineno); $fn = function() { $application->test(); // $application is undefined }; $fn();

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.70.0090.00616.58
8.3.60.0070.01418.56
8.3.50.0030.01221.14
8.3.40.0070.01418.94
8.3.30.0120.00618.85
8.3.20.0080.00018.57
8.3.10.0060.00321.09
8.3.00.0030.00723.52
8.2.180.0040.01418.41
8.2.170.0030.01022.96
8.2.160.0100.00320.37
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00417.61
8.2.110.0040.00422.08
8.2.100.0120.00018.03
8.2.90.0050.00319.28
8.2.80.0080.00018.05
8.2.70.0000.00817.63
8.2.60.0080.00018.04
8.2.50.0050.00518.07
8.2.40.0050.00418.09
8.2.30.0020.00521.23
8.2.20.0040.00417.84
8.2.10.0000.00817.63
8.2.00.0000.00817.75
8.1.280.0150.00625.92
8.1.270.0050.00322.07
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00720.91
8.1.230.0040.00721.03
8.1.220.0040.00418.77
8.1.210.0000.00818.96
8.1.200.0060.00317.35
8.1.190.0000.00717.66
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0040.00418.89
8.1.150.0000.00718.66
8.1.140.0040.00417.34
8.1.130.0060.00317.75
8.1.120.0020.00517.52
8.1.110.0040.00417.48
8.1.100.0050.00217.48
8.1.90.0040.00417.50
8.1.80.0070.00017.50
8.1.70.0070.00017.41
8.1.60.0100.00017.63
8.1.50.0030.00517.44
8.1.40.0070.00317.46
8.1.30.0040.00417.59
8.1.20.0060.00317.57
8.1.10.0040.00417.54
8.1.00.0040.00417.55
8.0.300.0060.00320.07
8.0.290.0000.00717.18
8.0.280.0030.00318.47
8.0.270.0030.00317.16
8.0.260.0000.00616.88
8.0.250.0000.00716.92
8.0.240.0070.00316.96
8.0.230.0030.00316.86
8.0.220.0000.00716.95
8.0.210.0030.00316.85
8.0.200.0030.00316.88
8.0.190.0070.00016.92
8.0.180.0040.00416.94
8.0.170.0000.01016.96
8.0.160.0000.00716.95
8.0.150.0040.00416.95
8.0.140.0000.00716.82
8.0.130.0050.00013.39
8.0.120.0050.00317.01
8.0.110.0050.00316.91
8.0.100.0070.00016.83
8.0.90.0000.00816.86
8.0.80.0110.00417.01
8.0.70.0040.00417.01
8.0.60.0000.00717.02
8.0.50.0080.00016.84
8.0.30.0110.00717.11
8.0.20.0100.00817.40
8.0.10.0000.00717.09
8.0.00.0080.01616.72
7.4.330.0050.00014.76
7.4.320.0030.00316.52
7.4.300.0060.00016.65
7.4.290.0030.00316.46
7.4.280.0000.00716.55
7.4.270.0090.00016.54
7.4.260.0000.00513.34
7.4.250.0040.00416.45
7.4.240.0000.00716.50
7.4.230.0040.00416.71
7.4.220.0090.01516.38
7.4.210.0080.00816.54
7.4.200.0000.00716.58
7.4.190.0040.00416.64
7.4.160.0080.00816.57
7.4.150.0090.00917.40
7.4.140.0090.01017.86
7.4.130.0100.01016.54
7.4.120.0050.01216.62
7.4.110.0120.00816.58
7.4.100.0100.00716.64
7.4.90.0150.00316.73
7.4.80.0150.00519.39
7.4.70.0100.00616.34
7.4.60.0030.01316.51
7.4.50.0040.00516.55
7.4.40.0110.00822.52
7.4.30.0070.01016.41
7.4.00.0090.00415.14
7.3.330.0050.00013.30
7.3.320.0030.00313.25
7.3.310.0030.00316.20
7.3.300.0040.00416.18
7.3.290.0090.00616.32
7.3.280.0080.00716.32
7.3.270.0090.00917.40
7.3.260.0110.00718.24
7.3.250.0090.01116.41
7.3.240.0130.00316.54
7.3.230.0080.00816.39
7.3.210.0090.00816.25
7.3.200.0060.01019.39
7.3.190.0030.01316.33
7.3.180.0120.00316.35
7.3.170.0030.01316.36
7.3.160.0000.01616.49
7.3.120.0030.01314.84
7.2.330.0120.00616.63
7.2.320.0100.00716.66
7.2.310.0130.00616.65
7.2.300.0120.00616.38
7.2.290.0090.00916.71
7.2.60.0080.00516.83
7.2.00.0060.00619.50
7.1.200.0030.00615.58
7.1.100.0130.00017.92
7.1.70.0030.00617.27
7.1.60.0000.01819.40
7.1.50.0090.02316.85
7.1.00.0070.07322.25
7.0.200.0030.00616.73
7.0.140.0100.06322.18
7.0.60.0070.04721.66
7.0.50.0100.07022.04
7.0.40.0000.06720.04
7.0.30.0000.09320.08
7.0.20.0030.08720.11
7.0.10.0000.08020.07
7.0.00.0000.04720.02
5.6.280.0030.07321.07
5.6.210.0100.05720.63
5.6.200.0100.08021.05
5.6.190.0070.08321.00
5.6.180.0130.07320.98
5.6.170.0070.05721.03
5.6.160.0000.04321.00
5.6.150.0030.04021.15
5.6.140.0030.04021.13
5.6.130.0030.04020.91
5.6.120.0030.03320.98
5.6.110.0000.05020.94
5.6.100.0030.05721.05
5.6.90.0030.03320.98
5.6.80.0070.02720.39
5.6.70.0030.03020.50
5.6.60.0030.03020.36
5.6.50.0000.04020.35
5.6.40.0000.03320.38
5.6.30.0000.04020.36
5.6.20.0030.03020.36
5.6.10.0000.03720.45
5.6.00.0000.03320.34
5.5.350.0000.08720.44
5.5.340.0070.07720.67
5.5.330.0000.08020.91
5.5.320.0070.08020.89
5.5.310.0070.08020.80
5.5.300.0030.04020.91
5.5.290.0030.04020.77
5.5.280.0030.03720.91
5.5.270.0030.03320.77
5.5.260.0130.03720.80
5.5.250.0070.02720.79
5.5.240.0000.03320.24
5.5.230.0030.04020.16
5.5.220.0070.02720.28
5.5.210.0000.03320.16
5.5.200.0000.04020.14
5.5.190.0000.03320.24
5.5.180.0000.03320.30
5.5.160.0070.02720.32
5.5.150.0030.03020.23
5.5.140.0000.03320.12
5.5.130.0030.03320.16
5.5.120.0000.04320.01
5.5.110.0000.04320.23
5.5.100.0000.03320.06
5.5.90.0000.07719.88
5.5.80.0070.07020.19
5.5.70.0030.07319.97
5.5.60.0030.08020.00
5.5.50.0030.07720.12
5.5.40.0100.06019.89
5.5.30.0130.07019.98
5.5.20.0030.06720.00
5.5.10.0030.07320.07
5.5.00.0070.07019.98
5.4.450.0000.04019.25
5.4.440.0000.04019.40
5.4.430.0030.03019.22
5.4.420.0030.03319.48
5.4.410.0000.04719.25
5.4.400.0030.03319.13
5.4.390.0000.03319.07
5.4.380.0030.02719.01
5.4.370.0030.03019.07
5.4.360.0000.03319.20
5.4.350.0030.02718.93
5.4.340.0030.03018.92
5.4.320.0030.03019.05
5.4.310.0000.03319.08
5.4.300.0000.03019.20
5.4.290.0030.03018.92
5.4.280.0030.03319.01
5.4.270.0030.03318.91
5.4.260.0000.03019.21
5.4.250.0000.04719.06
5.4.240.0070.05718.90
5.4.230.0030.07019.16
5.4.220.0070.06318.92
5.4.210.0100.08019.07
5.4.200.0070.05019.01
5.4.190.0000.07319.21
5.4.180.0070.07319.21
5.4.170.0030.06319.11
5.4.160.0030.06018.89
5.4.150.0100.06018.92
5.4.140.0070.07016.34
5.4.130.0070.06716.39
5.4.120.0000.05316.52
5.4.110.0030.04316.45
5.4.100.0030.07316.60
5.4.90.0000.07316.43
5.4.80.0030.07316.50
5.4.70.0070.05016.38
5.4.60.0070.07016.38
5.4.50.0030.05016.46
5.4.40.0100.06316.41
5.4.30.0000.04316.36
5.4.20.0030.06016.34
5.4.10.0070.07016.40
5.4.00.0000.07715.91
5.3.290.0000.03014.66
5.3.280.0100.05714.67
5.3.270.0070.07314.70
5.3.260.0030.07314.66
5.3.250.0030.06014.65
5.3.240.0000.07314.66
5.3.230.0030.06014.68
5.3.220.0000.05314.62
5.3.210.0000.05014.63
5.3.200.0030.07714.57
5.3.190.0030.07314.58
5.3.180.0030.07714.63
5.3.170.0000.08014.45
5.3.160.0000.07714.61
5.3.150.0030.05714.59
5.3.140.0070.06314.64
5.3.130.0030.05714.52
5.3.120.0030.07314.55
5.3.110.0170.06014.65
5.3.100.0030.07314.08
5.3.90.0070.07013.88
5.3.80.0030.06714.14
5.3.70.0130.06014.09
5.3.60.0030.05313.99
5.3.50.0030.04013.87
5.3.40.0100.07014.04
5.3.30.0030.06313.96
5.3.20.0070.06713.76
5.3.10.0070.07013.55
5.3.00.0030.05013.64
5.2.170.0070.05711.12
5.2.160.0070.05310.93
5.2.150.0030.06011.18
5.2.140.0000.06311.11
5.2.130.0000.06311.14
5.2.120.0030.06011.08
5.2.110.0030.06011.02
5.2.100.0000.05310.89
5.2.90.0100.04011.09
5.2.80.0030.05311.07
5.2.70.0070.06011.00
5.2.60.0000.06310.87
5.2.50.0030.06311.04
5.2.40.0070.05710.82
5.2.30.0030.05710.92
5.2.20.0000.05710.94
5.2.10.0030.06010.83
5.2.00.0070.05310.76
5.1.60.0000.05310.45
5.1.50.0070.04310.45
5.1.40.0070.04310.45
5.1.30.0100.05010.45
5.1.20.0000.06010.45
5.1.10.0000.05310.45
5.1.00.0000.05710.45
5.0.50.0030.04710.45
5.0.40.0030.04310.45
5.0.30.0000.07010.45
5.0.20.0070.04010.45
5.0.10.0030.03310.45
5.0.00.0000.06710.45
4.4.90.0000.03710.45
4.4.80.0030.03710.45
4.4.70.0030.03710.45
4.4.60.0000.03010.45
4.4.50.0030.02710.45
4.4.40.0000.05310.45
4.4.30.0000.03310.45
4.4.20.0030.03310.45
4.4.10.0000.03710.45
4.4.00.0000.04710.45
4.3.110.0000.03710.45
4.3.100.0000.03710.45
4.3.90.0000.02310.45
4.3.80.0000.04310.45
4.3.70.0000.03010.45
4.3.60.0030.03010.45
4.3.50.0070.03010.45
4.3.40.0030.04710.45
4.3.30.0030.03310.45
4.3.20.0000.03310.45
4.3.10.0000.03010.45
4.3.00.0000.03710.45

preferences:
49.1 ms | 401 KiB | 5 Q