3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __destruct() { throw new Exception; } } function t() { $x = new Foo; throw new Exception; } try { t(); } catch (Exception $ex) { var_dump($ex->what()); echo "ABC\n"; }

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.0040.01216.63
8.3.60.0170.00316.63
8.3.50.0100.01021.93
8.3.40.0070.01518.73
8.3.30.0090.00618.54
8.3.20.0080.00020.34
8.3.10.0070.00021.77
8.3.00.0070.00317.46
8.2.190.0110.00716.75
8.2.180.0110.00418.66
8.2.170.0120.00322.96
8.2.160.0070.00719.34
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00017.38
8.2.110.0040.00722.03
8.2.100.0080.00317.90
8.2.90.0060.00319.07
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00819.28
8.2.30.0030.00320.61
8.2.20.0040.00417.58
8.2.10.0000.00817.99
8.2.00.0040.00418.05
8.1.280.0180.00025.92
8.1.270.0000.00823.84
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0000.01217.66
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0050.00218.96
8.1.160.0050.00221.93
8.1.150.0000.00718.88
8.1.140.0000.00819.49
8.1.130.0040.00417.81
8.1.120.0040.00417.43
8.1.110.0040.00417.36
8.1.100.0000.00917.35
8.1.90.0030.00317.46
8.1.80.0040.00417.37
8.1.70.0000.00717.41
8.1.60.0040.00417.53
8.1.50.0000.00817.46
8.1.40.0000.00817.45
8.1.30.0030.00717.61
8.1.20.0070.00017.53
8.1.10.0040.00417.56
8.1.00.0000.00717.49
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00718.38
8.0.270.0090.00017.24
8.0.260.0000.00617.18
8.0.250.0080.00016.98
8.0.240.0040.00416.84
8.0.230.0070.00016.94
8.0.220.0070.00016.85
8.0.210.0070.00016.77
8.0.200.0000.00616.94
8.0.190.0000.00816.92
8.0.180.0000.00716.93
8.0.170.0040.00416.79
8.0.160.0070.00016.87
8.0.150.0040.00416.80
8.0.140.0000.00716.86
8.0.130.0060.00013.38
8.0.120.0080.00016.87
8.0.110.0000.00716.95
8.0.100.0040.00416.92
8.0.90.0040.00416.85
8.0.80.0080.00816.90
8.0.70.0000.00716.88
8.0.60.0040.00416.99
8.0.50.0070.00016.82
8.0.30.0130.00517.05
8.0.20.0090.00917.40
8.0.10.0040.00416.89
8.0.00.0050.01416.69
7.4.330.0000.00615.10
7.4.320.0030.00316.56
7.4.300.0070.00016.57
7.4.290.0000.00716.60
7.4.280.0050.00316.50
7.4.270.0060.00016.41
7.4.260.0050.00216.48
7.4.250.0000.00716.59
7.4.240.0070.00016.45
7.4.230.0000.00716.52
7.4.220.0130.01316.63
7.4.210.0090.00916.57
7.4.200.0000.00716.62
7.4.160.0090.00616.58
7.4.150.0100.00717.40
7.4.140.0150.00917.86
7.4.130.0080.01016.48
7.4.120.0080.00916.49
7.4.110.0110.00716.40
7.4.100.0140.00716.49
7.4.90.0070.01016.47
7.4.80.0030.01319.39
7.4.70.0140.00316.52
7.4.60.0130.00316.34
7.4.50.0000.00816.31
7.4.40.0130.01016.55
7.4.30.0090.00916.51
7.4.00.0100.00715.05
7.3.330.0050.00013.40
7.3.320.0000.00513.14
7.3.310.0070.00016.37
7.3.300.0070.00016.27
7.3.290.0000.00716.32
7.3.280.0070.01216.32
7.3.270.0140.00317.40
7.3.260.0210.00316.42
7.3.250.0090.00916.39
7.3.240.0100.00716.56
7.3.230.0030.01716.48
7.3.210.0110.00616.51
7.3.200.0110.01116.58
7.3.190.0080.00816.36
7.3.180.0090.01216.26
7.3.170.0120.00416.35
7.3.160.0060.00916.43
7.3.10.0060.00916.66
7.3.00.0160.00416.57
7.2.330.0190.01016.71
7.2.320.0120.01216.41
7.2.310.0140.00416.48
7.2.300.0160.00616.71
7.2.290.0100.00716.38
7.2.130.0130.00316.63
7.2.120.0060.00916.67
7.2.110.0110.00416.96
7.2.100.0030.00916.71
7.2.90.0050.01316.95
7.2.80.0020.01116.70
7.2.70.0030.01416.59
7.2.60.0050.01116.77
7.2.50.0130.00016.71
7.2.40.0130.00716.75
7.2.30.0130.00616.64
7.2.20.0090.00416.66
7.2.10.0070.00616.69
7.2.00.0050.00818.26
7.1.250.0070.01015.47
7.1.200.0030.00715.71
7.1.100.0080.00317.60
7.1.70.0030.01017.07
7.1.60.0070.01819.43
7.1.50.0030.01016.79
7.1.00.0030.07722.30
7.0.200.0350.00414.45
7.0.60.0130.05719.91
7.0.50.0070.08317.86
7.0.40.0030.04320.10
7.0.30.0130.04720.13
7.0.20.0270.04020.20
7.0.10.0030.05020.24
7.0.00.0100.03720.24
5.6.280.0070.06720.82
5.6.210.0100.03720.51
5.6.200.0200.06718.15
5.6.190.0100.07020.61
5.6.180.3170.03720.41
5.6.170.0430.06320.59
5.6.160.0100.07720.50
5.6.150.0100.07318.28
5.6.140.0100.04718.14
5.6.130.0070.04318.11
5.6.120.0100.08321.05
5.6.110.0130.07721.08
5.6.100.0070.08021.09
5.6.90.0100.07320.98
5.6.80.0000.08320.44
5.5.350.0230.04320.46
5.5.340.0070.08017.95
5.5.330.0030.08020.57
5.5.320.0270.06720.35
5.5.310.0270.07020.30
5.5.300.0100.07718.04
5.5.290.0130.07317.95
5.5.280.0130.03320.74
5.5.270.0070.05320.75
5.5.260.0170.06720.68
5.5.250.0130.07720.55
5.5.240.0100.05020.12
5.4.450.0400.06719.61
5.4.440.0630.05719.43
5.4.430.0670.07019.57
5.4.420.0230.06019.57
5.4.410.0130.06319.39
5.4.400.0170.05718.86
5.4.390.0200.05719.38
5.4.380.0270.04719.28
5.4.370.0130.06019.31
5.4.360.0200.06018.84
5.4.350.0230.05019.13
5.4.340.0070.07018.87
5.4.320.0230.05319.16
5.4.310.0270.05019.26
5.4.300.0170.06318.87
5.4.290.0130.05319.28
5.4.280.0170.05718.83
5.4.270.0170.05319.36
5.4.260.0170.06019.21
5.4.250.0100.06319.27
5.4.240.0200.06019.29
5.4.230.0400.06019.29
5.4.220.0230.05318.86
5.4.210.0270.05719.28
5.4.200.0670.05719.14
5.4.190.0670.06718.97
5.4.180.0430.07319.27
5.4.170.0100.08018.97
5.4.160.0270.04319.26
5.4.150.0130.06318.96
5.4.140.0200.06016.50
5.4.130.0100.05016.59
5.4.120.0670.05716.56
5.4.110.0500.07716.47
5.4.100.0600.06016.63
5.4.90.0500.06316.57
5.4.80.0530.04316.28
5.4.70.0600.06016.48
5.4.60.0130.05716.50
5.4.50.0600.05016.58
5.4.40.0500.06016.57
5.4.30.0470.05316.61
5.4.20.0370.04716.38
5.4.10.0130.05716.49
5.4.00.0500.04715.98

preferences:
33.57 ms | 401 KiB | 5 Q