3v4l.org

run code in 300+ PHP versions simultaneously
<?php function buildHash($test = 1) { if ($test > 10) { echo "made it"; } else { echo $test; } try { throw new Exception('error'); } catch (Exception $e) { buildHash($test++); } } buildHash();

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.0720.02379.23
8.3.50.0390.02979.30
8.3.40.0400.01347.58
8.3.30.0270.02448.09
8.3.20.0200.00749.04
8.3.10.0120.00651.39
8.3.00.0110.00848.55
8.2.180.0470.03778.97
8.2.170.0340.01747.71
8.2.160.0340.01749.27
8.2.150.0280.00047.75
8.2.140.0190.01348.09
8.2.130.0340.01449.51
8.2.120.0150.00348.75
8.2.110.0200.03148.24
8.2.100.0210.02146.54
8.2.90.0170.00746.97
8.2.80.0150.00946.13
8.2.70.0280.00346.38
8.2.60.0170.01446.55
8.2.50.0160.01646.25
8.2.40.0150.00847.07
8.2.30.0200.00747.06
8.2.20.0060.01646.36
8.2.10.0120.00946.80
8.2.00.0160.01046.39
8.1.280.1240.01079.51
8.1.270.0210.00451.29
8.1.260.0220.00349.06
8.1.250.0180.00651.44
8.1.240.0310.00350.76
8.1.230.0290.01349.60
8.1.220.0220.00046.16
8.1.210.0100.01747.47
8.1.200.0220.00045.75
8.1.190.0160.01645.85
8.1.180.0180.00745.86
8.1.170.0170.01347.07
8.1.160.0130.00750.51
8.1.150.0130.00747.15
8.1.140.0140.01046.03
8.1.130.0130.00646.42
8.1.120.0140.00745.99
8.1.110.0230.00746.02
8.1.100.0170.00346.12
8.1.90.0200.00346.07
8.1.80.0170.01045.95
8.1.70.0230.00346.01
8.1.60.0190.00646.26
8.1.50.0140.01146.04
8.1.40.0260.00646.18
8.1.30.0140.01746.20
8.1.20.0030.02146.07
8.1.10.0300.01379.19
8.1.00.0440.01479.12
8.0.300.0280.01181.66
8.0.290.0270.01478.25
8.0.280.0270.00779.97
8.0.270.0290.01378.82
8.0.260.0360.01878.84
8.0.250.0220.01678.51
8.0.240.0300.01078.52
8.0.230.0200.01478.43
8.0.220.0170.02078.35
8.0.210.0470.00778.40
8.0.200.0290.01378.30
8.0.190.0260.01778.36
8.0.180.0420.01678.29
8.0.170.0250.01678.26
8.0.160.0240.01778.35
8.0.150.0350.01478.31
8.0.140.0500.01078.32
8.0.130.0760.023133.49
8.0.120.0260.01678.38
8.0.110.0170.02478.28
8.0.100.0170.02178.32
8.0.90.0300.01078.26
8.0.80.0370.04778.36
8.0.70.0210.01778.32
8.0.60.0340.00078.43
8.0.50.0170.02378.49
8.0.30.0670.03778.37
8.0.20.0700.04078.21
8.0.10.0200.02078.38
8.0.00.0770.02178.34
7.4.330.0260.00075.87
7.4.320.0230.01377.85
7.4.300.0140.02177.93
7.4.290.0240.02477.98
7.4.280.0520.00777.93
7.4.270.0170.02177.89
7.4.260.0470.01778.01
7.4.250.0250.01677.88
7.4.240.0310.00777.94
7.4.230.0170.01778.04
7.4.220.0690.03377.98
7.4.210.0460.03077.97
7.4.200.0340.00778.09
7.4.160.0920.01978.03
7.4.150.0690.03878.07
7.4.140.0770.03477.95
7.4.130.0770.02978.00
7.4.120.0780.03078.08
7.4.110.0760.02277.97
7.4.100.0610.03878.01
7.4.90.0640.03477.99
7.4.80.0930.03477.98
7.4.70.0780.05377.81
7.4.60.0980.03677.77
7.4.50.0260.02077.86
7.4.40.0550.04977.85
7.4.30.0570.03777.98
7.4.00.0260.02976.45
7.3.330.0790.013133.43
7.3.320.0690.030133.34
7.3.310.0220.01977.72
7.3.300.0250.01677.79
7.3.290.0560.03977.80
7.3.280.0740.03677.81
7.3.270.1010.04778.03
7.3.260.0730.03878.06
7.3.250.0720.04777.80
7.3.240.0580.05177.91
7.3.230.0530.04378.03
7.3.210.0700.03877.96
7.3.200.0680.03077.97
7.3.190.0760.03577.84
7.3.180.0570.04077.80
7.3.170.0650.03777.86
7.3.160.0880.03977.93
7.3.120.0370.02776.59
7.2.330.0750.03877.91
7.2.320.0680.02978.14
7.2.310.0490.04978.18
7.2.300.0570.03578.29
7.2.290.0720.05378.06
7.2.60.0960.02078.84
7.2.00.0720.01681.36
7.1.200.1150.02677.76
7.1.100.0430.02679.55
7.1.70.0650.02379.19
7.1.60.0390.04279.20
7.1.50.0360.02596.87
7.1.00.0130.09084.42
7.0.200.2350.02678.30
7.0.140.0130.10084.12
7.0.110.0530.07081.82
7.0.100.0430.06081.86
7.0.90.0400.06081.90
7.0.80.0170.08081.70
7.0.70.0470.10381.86
7.0.60.0430.08781.90
7.0.50.0370.05781.80
7.0.40.0070.06319.89
7.0.30.0030.09019.78
7.0.20.0070.10319.79
7.0.10.0130.08719.64
7.0.00.0030.09319.84
5.6.280.0330.14085.64
5.6.260.0270.15385.30
5.6.250.0170.11785.42
5.6.240.0300.09785.54
5.6.230.0200.13385.42
5.6.220.0130.11385.27
5.6.210.0170.09785.31
5.6.200.0330.12385.40
5.6.190.0400.09385.26
5.6.180.0200.17385.26
5.6.170.0400.13085.32
5.6.160.0170.11785.38
5.6.150.0200.15085.41
5.6.140.0370.09385.33
5.6.130.0270.10785.36
5.6.120.0200.10085.36
5.6.110.0130.09785.40
5.6.100.0470.13385.41
5.6.90.0330.13085.30
5.6.80.0300.12784.78
5.6.70.0270.16084.79
5.6.60.0270.13784.55
5.6.50.0200.09384.56
5.6.40.0370.08784.54
5.6.30.0170.10084.77
5.6.20.0200.10084.68
5.6.10.0270.10784.71
5.6.00.0130.10384.63
5.5.380.0130.10782.34
5.5.370.0230.10782.40
5.5.360.0270.10382.35
5.5.350.0230.09782.21
5.5.340.0330.13382.58
5.5.330.0230.09082.84
5.5.320.0270.12382.65
5.5.310.0430.14382.84
5.5.300.0370.12082.62
5.5.290.0270.14082.59
5.5.280.0300.08782.76
5.5.270.0400.13082.71
5.5.260.0300.12782.80
5.5.250.0230.16782.51
5.5.240.0230.15082.20
5.5.230.0270.15382.19
5.5.220.0300.09081.96
5.5.210.0200.11382.20
5.5.200.0330.08381.95
5.5.190.0100.10382.19
5.5.180.0300.08781.95
5.5.160.0130.10381.88
5.5.150.0270.08781.96
5.5.140.0230.08782.19
5.5.130.0100.08782.16
5.5.120.0230.07782.08
5.5.110.0270.08781.97
5.5.100.0230.07782.01
5.5.90.0170.09381.94
5.5.80.0230.09082.00
5.5.70.0200.08082.09
5.5.60.0430.07382.04
5.5.50.0270.08782.05
5.5.40.0170.11382.02
5.5.30.0130.10081.99
5.5.20.0070.09081.79
5.5.10.0130.13081.79
5.5.00.0430.13081.93
5.4.450.0330.14084.00
5.4.440.0300.08784.04
5.4.430.0100.09784.22
5.4.420.0300.09784.30
5.4.410.0370.11383.79
5.4.400.0200.10083.72
5.4.390.0300.12783.63
5.4.380.0230.11383.83
5.4.370.0200.09783.71
5.4.360.0270.08383.81
5.4.350.0170.08783.80
5.4.340.0200.09083.68
5.4.320.0270.11783.67
5.4.310.0230.08383.65
5.4.300.0300.08783.71
5.4.290.0300.10783.59
5.4.280.0130.10383.82
5.4.270.0170.08083.68
5.4.260.0130.10083.69
5.4.250.0300.09083.71
5.4.240.0170.10083.62
5.4.230.0130.10783.80
5.4.220.0230.09083.70
5.4.210.0270.11383.73
5.4.200.0330.07383.80
5.4.190.0300.06783.62
5.4.180.0100.09083.61
5.4.170.0230.12783.61
5.4.160.0300.11083.75
5.4.150.0230.13083.73
5.4.140.0430.11081.04
5.4.130.0230.09081.16
5.4.120.0300.10381.18
5.4.110.0270.13381.05
5.4.100.0330.14781.20
5.4.90.0270.14781.11
5.4.80.0400.11381.17
5.4.70.0200.09081.20
5.4.60.0300.13381.20
5.4.50.0230.15081.00
5.4.40.0300.12381.08
5.4.30.0300.09381.19
5.4.20.0300.11781.16
5.4.10.0300.13381.14
5.4.00.0230.14780.66
5.3.290.0470.12077.91
5.3.280.0170.09777.92
5.3.270.0400.13378.95
5.3.260.0170.19077.94
5.3.250.0100.10377.86
5.3.240.0330.14078.01
5.3.230.0330.12377.92
5.3.220.0130.09377.80
5.3.210.0530.12377.81
5.3.200.0330.11777.87
5.3.190.0270.09077.71
5.3.180.0330.14077.89
5.3.170.0200.15077.89
5.3.160.0130.14077.66
5.3.150.0270.13777.88
5.3.140.0230.14777.89
5.3.130.0170.10377.70
5.3.120.0200.14377.78
5.3.110.0300.16377.80
5.3.100.0330.13777.32
5.3.90.0370.12377.28
5.3.80.0300.14777.20
5.3.70.0200.14777.36
5.3.60.0270.14077.25
5.3.50.0300.15377.23
5.3.40.0170.13777.09
5.3.30.0200.13377.11
5.3.20.0170.10077.03
5.3.10.0230.13076.94
5.3.00.0300.13776.79
5.2.170.0200.14775.03
5.2.160.0430.09775.00
5.2.150.0270.10775.11
5.2.140.0300.12775.13
5.2.130.0270.12074.95
5.2.120.0230.12374.96
5.2.110.0300.11374.96
5.2.100.0430.11375.07
5.2.90.0230.14375.08
5.2.80.0330.13074.98
5.2.70.0170.09775.05
5.2.60.0200.12075.10
5.2.50.0230.13774.90
5.2.40.0230.10074.85
5.2.30.0370.11774.83
5.2.20.0230.11774.92
5.2.10.0200.07074.63
5.2.00.0570.233264.69
5.1.60.0600.147264.06
5.1.50.0570.137263.89
5.1.40.0800.157263.89
5.1.30.0700.137264.40
5.1.20.0600.150264.34
5.1.10.0770.150264.21
5.1.00.0800.180263.98
5.0.50.0430.213263.22
5.0.40.0700.183263.43
5.0.30.0500.160263.05
5.0.20.0700.133263.07
5.0.10.0500.190263.03
5.0.00.0630.193262.77
4.4.90.0030.03312.00
4.4.80.0000.02312.00
4.4.70.0030.03312.00
4.4.60.0000.01712.00
4.4.50.0000.01712.00
4.4.40.0000.02012.00
4.4.30.0000.01312.00
4.4.20.0030.02012.00
4.4.10.0000.03712.00
4.4.00.0000.04712.00
4.3.110.0030.02312.00
4.3.100.0000.02312.00
4.3.90.0000.02712.00
4.3.80.0100.03012.00
4.3.70.0000.03712.00
4.3.60.0000.04012.00
4.3.50.0100.02712.00
4.3.40.0030.05012.00
4.3.30.0070.02312.00
4.3.20.0070.03012.00
4.3.10.0000.02712.00
4.3.00.0000.03312.00

preferences:
69.31 ms | 400 KiB | 5 Q