3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception('Hugo'); } catch (\Exception $e) { echo "Nice"; } try { echo "do nice things"; } catch (\Exception $e) { echo "shit"; }

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.30
8.3.50.0120.00916.63
8.3.40.0060.01018.80
8.3.30.0100.00318.92
8.3.20.0070.00020.18
8.3.10.0000.00823.53
8.3.00.0000.00819.25
8.2.180.0110.00316.38
8.2.170.0070.00722.96
8.2.160.0120.00920.35
8.2.150.0050.00224.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.22
8.2.110.0030.00721.96
8.2.100.0030.00917.88
8.2.90.0030.00619.05
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0050.00217.93
8.2.50.0030.00618.07
8.2.40.0030.00618.16
8.2.30.0070.00017.91
8.2.20.0040.00417.66
8.2.10.0050.00217.93
8.2.00.0000.00817.76
8.1.280.0070.01125.92
8.1.270.0000.00923.92
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00623.88
8.1.230.0060.00619.01
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0030.00517.13
8.1.180.0030.00618.10
8.1.170.0080.00020.24
8.1.160.0040.00422.06
8.1.150.0000.00718.79
8.1.140.0040.00417.31
8.1.130.0000.00717.81
8.1.120.0040.00417.47
8.1.110.0040.00417.43
8.1.100.0030.00417.45
8.1.90.0030.00517.41
8.1.80.0000.00817.34
8.1.70.0030.00317.37
8.1.60.0030.00617.60
8.1.50.0040.00417.52
8.1.40.0040.00417.52
8.1.30.0030.00517.66
8.1.20.0050.00317.48
8.1.10.0000.00817.59
8.1.00.0030.00517.48
8.0.300.0000.00718.77
8.0.290.0000.00716.74
8.0.280.0000.00718.47
8.0.270.0000.00717.30
8.0.260.0000.00617.14
8.0.250.0070.00016.91
8.0.240.0040.00416.84
8.0.230.0000.00716.90
8.0.220.0000.00716.89
8.0.210.0030.00316.87
8.0.200.0070.00016.93
8.0.190.0000.00816.91
8.0.180.0030.00516.84
8.0.170.0050.00316.94
8.0.160.0070.00016.79
8.0.150.0040.00416.98
8.0.140.0070.00316.86
8.0.130.0000.00513.33
8.0.120.0050.00216.90
8.0.110.0000.00717.01
8.0.100.0030.00516.81
8.0.90.0070.00016.98
8.0.80.0070.00716.92
8.0.70.0040.00416.76
8.0.60.0040.00416.89
8.0.50.0050.00216.84
8.0.30.0160.00617.14
8.0.20.0100.01017.40
8.0.10.0000.00816.88
8.0.00.0110.00916.70
7.4.330.0000.00515.20
7.4.320.0000.00716.39
7.4.300.0030.00316.61
7.4.290.0000.00716.55
7.4.280.0040.00416.39
7.4.270.0000.00716.60
7.4.260.0000.00716.46
7.4.250.0040.00416.47
7.4.240.0020.00516.43
7.4.230.0000.00716.52
7.4.220.0120.00616.58
7.4.210.0140.00016.45
7.4.200.0070.00016.57
7.4.160.0030.01216.47
7.4.150.0060.01117.40
7.4.140.0080.01117.86
7.4.130.0100.00716.58
7.4.120.0060.01016.46
7.4.110.0060.00916.61
7.4.100.0100.00716.48
7.4.90.0090.00816.56
7.4.80.0110.00719.39
7.4.70.0110.00816.31
7.4.60.0000.01916.43
7.4.50.0000.00716.39
7.4.40.0040.01216.47
7.4.30.0100.00716.20
7.4.00.0100.00715.04
7.3.330.0060.00013.14
7.3.320.0000.00613.24
7.3.310.0060.00016.10
7.3.300.0030.00316.27
7.3.290.0080.00916.28
7.3.280.0090.01016.25
7.3.270.0120.01217.40
7.3.260.0110.00816.21
7.3.250.0100.00816.37
7.3.240.0090.00916.30
7.3.230.0160.00016.39
7.3.210.0140.00316.30
7.3.200.0100.00619.39
7.3.190.0120.00316.60
7.3.180.0050.01116.41
7.3.170.0130.00316.44
7.3.160.0130.00916.43
7.2.330.0080.00816.51
7.2.320.0110.00716.56
7.2.310.0080.01116.64
7.2.300.0090.00916.43
7.2.290.0070.01316.70
7.2.60.0030.00816.84
7.2.50.0200.00316.62
7.2.00.0070.01119.63
7.1.200.0000.01415.69
7.1.100.0060.00617.66
7.1.70.0040.00416.95
7.1.60.0100.01019.32
7.1.50.0060.00916.88
7.1.00.0030.07722.31
7.0.200.0000.00716.84
7.0.140.0070.07021.90
7.0.60.0130.06719.79
7.0.50.0030.04317.78
7.0.40.0100.04720.30
7.0.30.0270.08020.13
7.0.20.0400.07319.99
7.0.10.0200.07720.16
7.0.00.0130.08020.29
5.6.280.0070.07020.77
5.6.210.0100.04320.62
5.6.200.0030.08318.19
5.6.190.0030.04320.49
5.6.180.0100.04320.61
5.6.170.0270.04720.41
5.6.160.0030.07320.49
5.6.150.0030.07018.11
5.6.140.0030.05718.18
5.6.130.0000.06718.22
5.6.120.0070.04321.01
5.6.110.0130.06720.96
5.6.100.0070.06020.92
5.6.90.0170.08320.95
5.6.80.0070.05720.44
5.6.70.4230.04020.32
5.5.350.0300.03720.40
5.5.340.0070.07717.97
5.5.330.0070.04720.40
5.5.320.0230.06320.41
5.5.310.0230.06020.13
5.5.300.0070.06718.01
5.5.290.0030.04317.93
5.5.280.0130.08020.64
5.5.270.0130.07720.95
5.5.260.0170.07720.71
5.5.250.0230.06720.78
5.5.240.2500.04020.23
5.4.450.0730.06019.60
5.4.440.0700.06719.57
5.4.430.0670.05019.47
5.4.420.0770.05719.47
5.4.410.0730.05719.00
5.4.400.0070.05719.10
5.4.390.0800.04719.25
5.4.380.0930.06019.19
5.4.370.0570.05318.82
5.4.360.0630.06018.80
5.4.350.0200.05719.16
5.4.340.0070.03611.97
5.4.320.0040.04512.45
5.4.310.0050.03912.45
5.4.300.0070.03612.45
5.4.290.0060.04112.45
5.4.280.0040.04012.35
5.4.270.0100.03612.34
5.4.260.0050.04212.35
5.4.250.0080.03312.34
5.4.240.0050.03912.34
5.4.230.0040.03812.34
5.4.220.0060.03612.34
5.4.210.0040.04012.34
5.4.200.0060.03712.34
5.4.190.0060.03512.33
5.4.180.0060.03512.33
5.4.170.0030.03712.35
5.4.160.0030.03812.34
5.4.150.0040.03712.34
5.4.140.0080.03812.02
5.4.130.0040.03712.01
5.4.120.0090.03211.96
5.4.110.0050.03711.97
5.4.100.0030.03711.96
5.4.90.0030.03811.96
5.4.80.0070.03511.96
5.4.70.0090.03411.96
5.4.60.0070.03811.96
5.4.50.0080.04011.96
5.4.40.0060.03411.95
5.4.30.0080.03211.95
5.4.20.0060.03511.95
5.4.10.0080.03611.95
5.4.00.0030.03811.43
5.3.290.0100.03812.80
5.3.280.0030.03912.71
5.3.270.0060.04712.72
5.3.260.0070.03712.72
5.3.250.0090.03412.71
5.3.240.0050.04212.72
5.3.230.0050.04412.71
5.3.220.0090.03812.68
5.3.210.0090.03412.68
5.3.200.0070.03912.68
5.3.190.0050.03812.68
5.3.180.0060.03912.67
5.3.170.0050.04112.67
5.3.160.0080.03512.68
5.3.150.0040.04412.68
5.3.140.0030.04912.66
5.3.130.0060.04012.66
5.3.120.0080.03712.66
5.3.110.0070.04212.66
5.3.100.0030.04112.12
5.3.90.0060.04212.09
5.3.80.0030.04012.08
5.3.70.0060.04112.07
5.3.60.0050.03812.06
5.3.50.0060.03612.00
5.3.40.0060.03912.00
5.3.30.0080.03711.95
5.3.20.0060.04111.73
5.3.10.0060.03811.70
5.3.00.0060.03511.68
5.2.170.0040.0309.18
5.2.160.0030.0399.17
5.2.150.0090.0309.18
5.2.140.0080.0319.17
5.2.130.0060.0329.13
5.2.120.0030.0359.14
5.2.110.0050.0339.14
5.2.100.0050.0299.14
5.2.90.0060.0279.14
5.2.80.0020.0329.13
5.2.70.0030.0309.13
5.2.60.0050.0299.08
5.2.50.0050.0289.06
5.2.40.0080.0279.03
5.2.30.0030.0339.01
5.2.20.0030.0309.00
5.2.10.0050.0288.92
5.2.00.0020.0308.78
5.1.60.0060.0358.06
5.1.50.0020.0268.06
5.1.40.0050.0298.05
5.1.30.0060.0238.39
5.1.20.0030.0278.42
5.1.10.0050.0248.14
5.1.00.0080.0218.14
5.0.50.0050.0236.61
5.0.40.0020.0236.47
5.0.30.0070.0276.29
5.0.20.0060.0296.25
5.0.10.0050.0246.24
5.0.00.0020.0326.23
4.4.90.0030.0164.78
4.4.80.0020.0154.76
4.4.70.0040.0164.76
4.4.60.0050.0184.75
4.4.50.0050.0184.77
4.4.40.0040.0294.71
4.4.30.0020.0244.76
4.4.20.0010.0194.84
4.4.10.0030.0204.84
4.4.00.0050.0274.75
4.3.110.0050.0194.67
4.3.100.0040.0144.67
4.3.90.0030.0144.64
4.3.80.0040.0224.58
4.3.70.0040.0204.63
4.3.60.0020.0154.63
4.3.50.0020.0174.63
4.3.40.0010.0244.54
4.3.30.0010.0163.28
4.3.20.0000.0193.26
4.3.10.0020.0193.22
4.3.00.0170.0276.88

preferences:
45.8 ms | 400 KiB | 5 Q