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.0570.02379.11
8.3.50.0530.02079.39
8.3.40.0400.01047.59
8.3.30.0430.01747.96
8.3.20.0270.00349.27
8.3.10.0190.00051.44
8.3.00.0130.00748.68
8.2.180.0760.01378.75
8.2.170.0400.03047.61
8.2.160.0300.02349.10
8.2.150.0220.00347.77
8.2.140.0250.02248.09
8.2.130.0170.01049.55
8.2.120.0160.00048.64
8.2.110.0140.01049.93
8.2.100.0280.01249.13
8.2.90.0280.00347.77
8.2.80.0070.01446.38
8.2.70.0200.00746.25
8.2.60.0210.00946.80
8.2.50.0110.01546.24
8.2.40.0160.01046.84
8.2.30.0210.00346.92
8.2.20.0070.01446.37
8.2.10.0190.00346.87
8.2.00.0130.01346.48
8.1.280.0720.01378.00
8.1.270.0140.01051.29
8.1.260.0100.01349.42
8.1.250.0210.00051.41
8.1.240.0100.01950.55
8.1.230.0240.01047.77
8.1.220.0170.00346.05
8.1.210.0070.01446.11
8.1.200.0240.00345.85
8.1.190.0140.00745.88
8.1.180.0140.00745.97
8.1.170.0210.00047.33
8.1.160.0100.01050.59
8.1.150.0120.01247.25
8.1.140.0180.00446.07
8.1.130.0120.00646.39
8.1.120.0130.00746.05
8.1.110.0150.00646.01
8.1.100.0210.00046.05
8.1.90.0130.00746.04
8.1.80.0210.00346.05
8.1.70.0200.01646.00
8.1.60.0180.00746.09
8.1.50.0140.01146.09
8.1.40.0180.00946.12
8.1.30.0170.00746.21
8.1.20.0180.00746.22
8.1.10.0310.00779.09
8.1.00.0320.00779.10
8.0.300.0290.00778.66
8.0.290.0230.02078.08
8.0.280.0220.01579.96
8.0.270.0330.01378.77
8.0.260.0250.01378.77
8.0.250.0250.00978.47
8.0.240.0230.01378.43
8.0.230.0250.01478.41
8.0.220.0140.02478.35
8.0.210.0380.00078.28
8.0.200.0170.01778.23
8.0.190.0310.02078.39
8.0.180.0260.01378.31
8.0.170.0300.01378.43
8.0.160.0340.00778.32
8.0.150.0270.01378.46
8.0.140.0390.02078.36
8.0.130.0860.027133.46
8.0.120.0270.01778.44
8.0.110.0350.01078.46
8.0.100.0330.00778.24
8.0.90.0260.01378.37
8.0.80.0490.03978.36
8.0.70.0210.02178.32
8.0.60.0170.02078.39
8.0.50.0320.00678.41
8.0.30.0830.02278.64
8.0.20.0700.04078.44
8.0.10.0250.01678.51
8.0.00.0770.02678.22
7.4.330.0120.01576.24
7.4.320.0220.01377.97
7.4.300.0310.00677.88
7.4.290.0190.01977.97
7.4.280.0300.01378.01
7.4.270.0200.02078.00
7.4.260.0520.01978.02
7.4.250.0350.00678.02
7.4.240.0150.02477.86
7.4.230.0250.01378.05
7.4.220.0740.02978.09
7.4.210.0500.02778.07
7.4.200.0330.01078.09
7.4.160.0730.02378.26
7.4.150.0810.01978.02
7.4.140.0750.03478.03
7.4.130.0600.03778.04
7.4.120.0660.03578.07
7.4.110.0750.05777.81
7.4.100.0680.03978.09
7.4.90.0640.03778.02
7.4.80.0810.04678.00
7.4.70.0690.05677.95
7.4.60.0510.05178.11
7.4.50.0270.02077.83
7.4.40.0750.03677.89
7.4.30.0540.03877.88
7.4.00.0410.02276.32
7.3.330.0470.027133.26
7.3.320.0680.017133.43
7.3.310.0280.00977.85
7.3.300.0330.01077.73
7.3.290.0570.04077.76
7.3.280.0700.03777.80
7.3.270.0610.04177.83
7.3.260.0960.04777.86
7.3.250.0730.02977.93
7.3.240.0770.03577.95
7.3.230.0910.05177.80
7.3.210.0730.03577.88
7.3.200.0740.03177.84
7.3.190.0760.04678.07
7.3.180.0560.04378.07
7.3.170.0710.03677.86
7.3.160.0880.03277.79
7.3.120.0320.03576.48
7.3.110.0380.03576.62
7.3.100.0350.02276.46
7.3.90.0400.02376.47
7.3.80.0250.05076.41
7.3.70.0260.02376.34
7.3.60.0330.02676.26
7.3.50.0270.03076.33
7.3.40.0450.01676.33
7.3.30.0330.02076.28
7.3.20.0180.01878.63
7.3.10.0200.01578.73
7.3.00.0120.02278.61
7.2.330.0830.02678.34
7.2.320.0650.04078.30
7.2.310.0510.04878.04
7.2.300.0670.04178.11
7.2.290.0720.03477.99
7.2.250.0370.04176.80
7.2.240.0560.02076.64
7.2.230.0330.02976.84
7.2.220.0320.02576.64
7.2.210.0240.03876.56
7.2.200.0390.02076.32
7.2.190.0270.02676.29
7.2.180.0290.03076.69
7.2.170.0300.02676.65
7.2.110.2750.01378.50
7.2.60.2340.01378.86
7.2.00.0890.01681.27
7.1.330.0380.02077.59
7.1.320.0240.02477.48
7.1.310.0320.01977.81
7.1.300.0210.03277.81
7.1.290.0230.02977.98
7.1.280.0230.02277.49
7.1.270.0160.02977.46
7.1.260.0070.03677.61
7.1.200.1190.02377.81
7.1.100.0470.02579.76
7.1.70.0450.03579.05
7.1.60.0580.03278.86
7.1.50.0410.03896.88
7.1.00.0130.09784.45
7.0.200.1190.04478.55
7.0.140.0100.10084.18
7.0.60.0430.09381.83
7.0.50.0370.11379.63
7.0.40.0270.10320.20
7.0.30.0300.08020.34
7.0.20.0130.07320.26
7.0.10.0170.05320.07
7.0.00.0200.06320.05
5.6.280.0300.14385.62
5.6.210.0330.14085.18
5.6.200.0170.09382.87
5.6.190.0330.15085.09
5.6.180.0630.12385.06
5.6.170.0470.12385.05
5.6.160.0330.15084.86
5.6.150.0670.09082.87
5.6.140.0330.15082.89
5.6.130.0300.15082.86
5.6.120.0270.11785.72
5.6.110.0170.17385.69
5.6.100.0300.15385.71
5.6.90.0270.10785.68
5.6.80.0330.13784.99
5.6.70.3130.08385.08
5.5.350.0300.15085.10
5.5.340.0170.11382.67
5.5.330.0430.14084.93
5.5.320.0430.14384.90
5.5.310.0330.15084.83
5.5.300.0330.12782.70
5.5.290.0330.14082.64
5.5.280.0200.16785.51
5.5.270.0400.15085.47
5.5.260.0430.09085.57
5.5.250.0170.15085.27
5.5.240.0570.12384.98
5.4.450.0400.12084.06
5.4.440.0870.13784.18
5.4.430.0300.14084.04
5.4.420.0500.14084.27
5.4.410.0570.12383.83
5.4.400.0430.11383.60
5.4.390.0700.12083.95
5.4.380.0600.15083.20
5.4.370.0730.15083.27
5.4.360.0770.14083.27
5.4.350.0530.16783.42
5.4.340.0500.17083.22
5.4.320.0340.09777.21
5.4.310.0320.09377.20
5.4.300.0270.10277.21
5.4.290.0300.09677.21
5.4.280.0220.10777.10
5.4.270.0240.11577.10
5.4.260.0280.10177.10
5.4.250.0290.11177.10
5.4.240.0260.10477.10
5.4.230.0270.09977.09
5.4.220.0260.11177.09
5.4.210.0300.09477.10
5.4.200.0210.10877.09
5.4.190.0260.10077.09
5.4.180.0240.10277.09
5.4.170.0260.09977.09
5.4.160.0240.11077.10
5.4.150.0260.09777.09
5.4.140.0320.09876.77
5.4.130.0290.11276.77
5.4.120.0260.10976.72
5.4.110.0280.10376.71
5.4.100.0260.10776.71
5.4.90.0340.09876.72
5.4.80.0410.11776.71
5.4.70.0290.09476.71
5.4.60.0360.10076.71
5.4.50.0370.09676.71
5.4.40.0260.10676.70
5.4.30.0300.09776.69
5.4.20.0310.10576.70
5.4.10.0240.10376.70
5.4.00.0280.10576.18
5.3.290.0230.10676.12
5.3.280.0290.09276.05
5.3.270.0220.10576.06
5.3.260.0290.09776.07
5.3.250.0240.10676.07
5.3.240.0270.10276.07
5.3.230.0220.10576.05
5.3.220.0260.10776.02
5.3.210.0250.10776.02
5.3.200.0240.10176.03
5.3.190.0240.10176.03
5.3.180.0250.10776.02
5.3.170.0200.09976.02
5.3.160.0290.10776.02
5.3.150.0340.10676.03
5.3.140.0240.10876.01
5.3.130.0230.11676.00
5.3.120.0360.11876.01
5.3.110.0380.10176.01
5.3.100.0250.10575.50
5.3.90.0230.11075.48
5.3.80.0240.10675.46
5.3.70.0220.11875.47
5.3.60.0330.10675.46
5.3.50.0360.09775.40
5.3.40.0310.10375.40
5.3.30.0300.09975.36
5.3.20.0250.10575.14
5.3.10.0260.10775.11
5.3.00.0230.10575.09
5.2.170.0290.09573.32
5.2.160.0310.12073.32
5.2.150.0260.10273.32
5.2.140.0310.10473.32
5.2.130.0250.11073.28
5.2.120.0330.10573.28
5.2.110.0330.09173.28
5.2.100.0330.11773.27
5.2.90.0200.10473.27
5.2.80.0220.09873.27
5.2.70.0170.09973.27
5.2.60.0260.10273.23
5.2.50.0320.12073.19
5.2.40.0260.12973.88
5.2.30.0150.13472.91
5.2.20.0270.12272.91
5.2.10.0200.08572.82
5.2.00.1880.256576.57
5.1.60.1690.331518.77
5.1.50.3440.355590.74
5.1.40.2920.381590.09
5.1.30.2210.313578.45
5.1.20.2020.346523.58
5.1.11.0071.1831447.14
5.1.00.1970.349591.47
5.0.50.2850.312596.87
5.0.40.2940.294596.00
5.0.30.3130.315596.76
5.0.20.2930.314596.70
5.0.10.3270.312596.66
5.0.00.2840.360596.34
4.4.90.0070.0184.78
4.4.80.0070.0184.75
4.4.70.0030.0154.76
4.4.60.0020.0174.76
4.4.50.0040.0294.77
4.4.40.0070.0404.71
4.4.30.0030.0344.75
4.4.20.0010.0174.85
4.4.10.0020.0274.85
4.4.00.0060.0314.76
4.3.110.0040.0154.67
4.3.100.0020.0154.66
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0050.0274.54
4.3.30.0030.0213.30
4.3.20.0020.0223.28
4.3.10.0020.0173.24
4.3.00.0070.02030.86

preferences:
46.56 ms | 401 KiB | 5 Q