3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hadException = false; try { throw new Exception('foo'); } catch(Exception $e) { $hadException=true; throw new Exception('bar'); } finally { var_dump($hadException); echo "Juhu\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.60.0130.00718.55
8.3.50.0120.00722.05
8.3.40.0070.00718.97
8.3.30.0110.00718.79
8.3.20.0040.00419.17
8.3.10.0000.00821.76
8.3.00.0000.00820.90
8.2.180.0070.01518.29
8.2.170.0130.00322.96
8.2.160.0080.00819.20
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0100.00326.16
8.2.120.0060.00320.74
8.2.110.0090.00019.32
8.2.100.0120.00019.66
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0080.00018.04
8.2.50.0000.00818.10
8.2.40.0060.00320.42
8.2.30.0040.00419.25
8.2.20.0040.00417.56
8.2.10.0070.00018.11
8.2.00.0040.00418.03
8.1.280.0140.00025.92
8.1.270.0040.00423.79
8.1.260.0080.00026.35
8.1.250.0120.00628.09
8.1.240.0080.00022.05
8.1.230.0060.00619.36
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0020.00518.88
8.1.150.0000.00918.79
8.1.140.0040.00417.44
8.1.130.0050.00317.61
8.1.120.0030.00317.46
8.1.110.0030.00917.36
8.1.100.0000.00717.35
8.1.90.0050.00317.50
8.1.80.0040.00417.39
8.1.70.0000.00717.48
8.1.60.0030.00617.54
8.1.50.0000.00817.35
8.1.40.0000.00817.40
8.1.30.0030.00517.51
8.1.20.0000.00717.56
8.1.10.0040.00417.58
8.1.00.0060.00317.47
8.0.300.0050.00218.77
8.0.290.0000.00916.75
8.0.280.0070.00018.39
8.0.270.0000.00816.79
8.0.260.0060.00017.25
8.0.250.0000.00716.98
8.0.240.0040.00416.95
8.0.230.0030.00316.88
8.0.220.0070.00016.95
8.0.210.0000.00716.89
8.0.200.0030.00316.83
8.0.190.0040.00416.93
8.0.180.0070.00016.92
8.0.170.0000.00816.80
8.0.160.0030.00316.91
8.0.150.0040.00416.86
8.0.140.0000.00716.91
8.0.130.0030.00313.33
8.0.120.0050.00316.89
8.0.110.0040.00416.89
8.0.100.0000.00716.94
8.0.90.0040.00416.83
8.0.80.0070.00717.02
8.0.70.0040.00417.00
8.0.60.0000.00816.90
8.0.50.0080.00016.96
8.0.30.0120.01017.05
8.0.20.0080.01017.40
8.0.10.0040.00417.09
8.0.00.0000.02016.62
7.4.330.0000.00415.08
7.4.320.0000.00816.54
7.4.300.0030.00316.55
7.4.290.0040.00416.59
7.4.280.0000.00716.49
7.4.270.0030.00316.59
7.4.260.0050.00316.59
7.4.250.0030.00316.47
7.4.240.0000.00716.45
7.4.230.0080.00016.60
7.4.220.0060.01316.62
7.4.210.0070.01716.53
7.4.200.0000.00716.69
7.4.150.0070.01017.40
7.4.140.0100.00917.86
7.4.130.0120.00516.63
7.4.120.0070.01016.51
7.4.110.0070.01716.53
7.4.100.0100.01016.51
7.4.90.0100.00716.39
7.4.80.0040.01819.39
7.4.70.0060.01216.50
7.4.60.0130.00616.61
7.4.50.0140.00016.50
7.4.40.0160.00716.51
7.4.30.0080.00816.55
7.4.00.0060.00914.97
7.3.330.0000.00513.15
7.3.320.0000.00613.11
7.3.310.0000.00716.07
7.3.300.0040.00416.29
7.3.290.0070.00916.24
7.3.280.0100.01016.24
7.3.270.0120.00517.40
7.3.260.0090.01116.49
7.3.250.0170.01316.43
7.3.240.0090.00916.41
7.3.230.0160.00016.47
7.3.210.0070.01016.43
7.3.200.0030.01416.18
7.3.190.0070.01116.34
7.3.180.0060.00916.38
7.3.170.0090.00616.50
7.3.160.0120.00616.51
7.3.10.0030.00916.46
7.3.00.0100.00516.30
7.2.330.0070.01016.29
7.2.320.0070.01016.61
7.2.310.0140.01116.51
7.2.300.0060.00916.15
7.2.290.0100.01016.56
7.2.130.0050.00916.61
7.2.120.0080.01116.68
7.2.110.0080.00816.62
7.2.100.0040.00816.69
7.2.90.0060.01016.78
7.2.80.0050.00916.67
7.2.70.0090.00616.66
7.2.60.0070.00516.80
7.2.50.0090.00616.78
7.2.40.0040.00816.68
7.2.30.0060.00516.73
7.2.20.0070.00616.90
7.2.10.0100.00416.71
7.2.00.0080.00917.59
7.1.250.0060.00915.49
7.1.200.0000.01015.78
7.1.100.0190.00416.50
7.1.70.0080.00017.23
7.1.60.0110.01519.47
7.1.50.0030.02016.87
7.1.00.0070.07322.57
7.0.200.0110.00415.07
7.0.70.0070.07320.04
7.0.60.1270.05019.82
7.0.50.1530.08320.20
7.0.40.1300.06020.32
7.0.30.1200.06720.19
7.0.20.1830.07720.33
7.0.10.1300.07020.41
7.0.00.1270.07320.29
5.6.280.0000.07721.02
5.6.220.0970.06320.63
5.6.210.0670.05320.54
5.6.200.1500.08721.09
5.6.190.1330.07021.10
5.6.180.1170.05321.16
5.6.170.1200.06721.02
5.6.160.1200.08021.09
5.6.150.1170.07021.23
5.6.140.0530.07321.16
5.6.130.1100.07721.07
5.6.120.1070.06321.14
5.6.110.1100.06721.08
5.6.100.1070.07720.99
5.6.90.1000.08021.04
5.6.80.1100.07320.55
5.6.70.1130.06020.43
5.6.60.1270.05020.53
5.6.50.1170.07020.55
5.6.40.1430.07020.49
5.6.30.1200.08720.52
5.6.20.1000.05320.43
5.6.10.0930.06320.42
5.6.00.1030.07320.41
5.5.360.0800.06720.60
5.5.350.1000.06720.38
5.5.340.1070.07320.88
5.5.330.1000.04720.85
5.5.320.0970.05720.99
5.5.310.1170.07720.82
5.5.300.0130.06020.94
5.5.290.1270.07320.76
5.5.280.0970.05720.79
5.5.270.1100.06320.78
5.5.260.1100.09020.87
5.5.250.0130.08020.76
5.5.240.0900.08020.08
5.5.230.0970.07020.21
5.5.220.0970.06320.31
5.5.210.1100.06020.32
5.5.200.0870.07020.26
5.5.190.1300.07020.33
5.5.180.0900.06020.23
5.5.160.0930.05720.33
5.5.150.1030.04320.22
5.5.140.0870.04320.12
5.5.130.1030.05320.17
5.5.120.1030.05720.19
5.5.110.0730.07020.19
5.5.100.0770.06320.11
5.5.90.0800.05320.02
5.5.80.0970.05720.18
5.5.70.0900.06720.17
5.5.60.0830.06019.99
5.5.50.1200.08019.99
5.5.40.0900.07720.07
5.5.30.1030.05719.98
5.5.20.1130.05320.14
5.5.10.1170.05720.13
5.5.00.1400.06720.05

preferences:
32.61 ms | 401 KiB | 5 Q