3v4l.org

run code in 300+ PHP versions simultaneously
<?php function buildHash($test = 1) { if ($test > 10) { echo "made it"; } 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.0830.01779.36
8.3.50.0480.02179.33
8.3.40.0470.00048.75
8.3.30.0430.02347.92
8.2.180.0700.02078.88
8.2.170.0580.00347.80
8.2.160.0470.00748.85
8.1.280.0600.02077.75
7.4.10.0340.04476.52
7.4.00.0250.03376.29
7.3.130.0440.03376.44
7.3.120.0390.02976.41
7.3.110.0620.01676.09
7.3.100.0430.01376.36
7.3.90.0270.03176.29
7.3.80.0370.02476.53
7.3.70.0400.03376.27
7.3.60.0200.03676.16
7.3.50.0330.04076.35
7.3.40.0240.03176.11
7.3.30.0330.02676.43
7.3.20.0060.02278.76
7.3.10.0130.01678.66
7.3.00.0140.01478.76
7.2.260.0520.02976.82
7.2.250.0440.03376.76
7.2.240.0420.02476.60
7.2.230.0390.01676.55
7.2.220.0370.02076.63
7.2.210.0290.02676.63
7.2.200.0500.03776.57
7.2.190.0360.03976.63
7.2.180.0300.02476.78
7.2.170.0330.03376.34
7.2.160.0390.01976.74
7.2.150.0110.02578.91
7.2.140.0100.02778.64
7.2.130.0030.03178.85
7.2.120.0110.02278.95
7.2.110.0100.02378.97
7.2.100.0490.02078.82
7.2.90.0590.02478.79
7.2.80.0540.03079.09
7.2.70.0390.02279.09
7.2.60.0490.02778.72
7.2.50.0250.00012.02
7.2.40.0160.00811.87
7.2.30.0310.02178.83
7.2.20.0480.02978.96
7.2.10.0330.03078.76
7.2.00.0410.02579.89
7.1.330.0240.02777.73
7.1.320.0970.03077.78
7.1.310.0420.03277.84
7.1.300.0260.03677.73
7.1.290.0360.02677.55
7.1.280.0260.02677.75
7.1.270.3010.03077.64
7.1.260.0170.02077.78
7.1.250.0100.03077.91
7.1.240.0110.03277.43
7.1.230.0400.03377.91
7.1.220.0260.03477.75
7.1.210.1370.02477.45
7.1.200.0650.03077.75
7.1.190.0410.02277.67
7.1.180.0190.03377.59
7.1.170.0340.03777.85
7.1.160.0380.04277.68
7.1.150.0180.04077.87
7.1.140.0350.02877.44
7.1.130.0300.02777.87
7.1.120.0390.03277.70
7.1.110.0370.04977.81
7.1.100.0420.03278.94
7.1.90.0260.04177.50
7.1.80.0490.02477.77
7.1.70.0450.02678.22
7.1.60.0330.03178.38
7.1.50.0380.03078.35
7.1.40.0490.02078.07
7.1.30.0600.02878.09
7.1.20.0360.02878.08
7.1.10.0380.02878.22
7.1.00.0400.02778.18
7.0.330.0320.04177.44
7.0.320.0350.04177.18
7.0.310.0310.03777.25
7.0.300.0250.03577.43
7.0.290.0190.04377.27
7.0.280.0360.04777.45
7.0.270.0250.04677.43
7.0.260.0260.04177.40
7.0.250.0120.05677.63
7.0.240.0330.04177.60
7.0.230.0370.04477.47
7.0.220.0320.05077.22
7.0.210.0420.03577.32
7.0.200.0350.03078.12
7.0.190.0340.03478.17
7.0.180.0300.04077.96
7.0.170.0290.03677.89
7.0.160.0360.04177.95
7.0.150.0370.02445.00
7.0.140.0370.03677.96
7.0.130.0380.03678.11
7.0.120.0480.03378.11
7.0.110.0450.03278.06
7.0.100.0450.03077.88
7.0.90.0420.03677.90
7.0.80.0540.02478.07
7.0.70.0410.03577.91
7.0.60.0420.03277.75
7.0.50.0680.04178.05
7.0.40.0220.03014.22
7.0.30.0190.03814.23
7.0.20.0230.03814.09
7.0.10.0250.03114.08
7.0.00.0160.02013.24
5.6.400.0240.09979.02
5.6.390.0450.09079.06
5.6.380.0270.10779.12
5.6.370.0500.07679.20
5.6.360.0570.08778.95
5.6.350.0430.08478.81
5.6.340.0350.11279.05
5.6.330.0420.08878.97
5.6.320.0620.09178.80
5.6.310.0170.00011.61
5.6.300.0380.11482.09
5.6.290.0470.09682.46
5.6.280.0400.10082.44
5.6.270.0320.10082.53
5.6.260.0370.09382.30
5.6.250.0450.10082.36
5.6.240.0370.12882.15
5.6.230.0390.11282.44
5.6.220.0440.10882.14
5.6.210.0380.08682.36
5.6.200.0310.09982.18
5.6.190.0370.10582.37
5.6.180.0410.11282.29
5.6.170.0380.09682.35
5.6.160.0260.12082.21
5.6.150.0380.10282.33
5.6.140.0330.09682.37
5.6.130.0410.09382.27
5.6.120.0540.09682.23
5.6.110.0320.10182.23
5.6.100.0380.11482.15
5.6.90.0460.11482.18
5.6.80.0230.11281.97
5.6.70.0400.10581.94
5.6.60.0350.10081.83
5.6.50.0450.09781.74
5.6.40.0390.09181.96
5.6.30.0290.10781.95
5.6.20.0360.09881.97
5.6.10.0480.09381.94
5.6.00.0250.10781.91
5.5.380.0330.13280.61
5.5.370.0400.08780.63
5.5.360.0420.12180.82
5.5.350.0330.10280.70
5.5.340.0460.08080.91
5.5.330.0400.08880.71
5.5.320.0400.08080.72
5.5.310.0350.10580.78
5.5.300.0370.10180.79
5.5.290.0400.09680.88
5.5.280.0340.09180.92
5.5.270.0450.08180.70
5.5.260.0350.09780.71
5.5.250.0410.08280.72
5.5.240.0430.08180.44
5.5.230.0360.12680.52
5.5.220.0280.09080.35
5.5.210.0380.09480.28
5.5.200.0430.09980.55
5.5.190.0430.08180.35
5.5.180.0350.09880.24
5.5.170.0490.08878.90
5.5.160.0260.10880.55
5.5.150.0290.09880.61
5.5.140.0390.09680.31
5.5.130.0280.11080.51
5.5.120.0400.08080.49
5.5.110.0350.10280.31
5.5.100.0430.09280.24
5.5.90.0350.08980.34
5.5.80.0340.08780.46
5.5.70.0370.08780.35
5.5.60.0240.09780.48
5.5.50.0360.09580.36
5.5.40.0370.09280.41
5.5.30.0310.09680.37
5.5.20.0330.09280.50
5.5.10.0520.08980.44
5.5.00.0350.09880.19
5.4.450.0220.09979.81
5.4.440.0260.12979.65
5.4.430.0330.12079.65
5.4.420.0320.09779.74
5.4.410.0360.09579.69
5.4.400.0300.08779.63
5.4.390.0370.08879.82
5.4.380.0420.09679.57
5.4.370.0290.09279.65
5.4.360.0290.09879.74
5.4.350.0300.10179.58
5.4.340.0420.10179.84
5.4.330.0390.07975.77
5.4.320.0300.08879.58
5.4.310.0400.08079.74
5.4.300.0220.10379.69
5.4.290.0270.08879.62
5.4.280.0350.08079.66
5.4.270.0330.08979.55
5.4.260.0280.11179.80
5.4.250.0290.10079.40
5.4.240.0330.08679.66
5.4.230.0330.08779.56
5.4.220.0340.10479.71
5.4.210.0340.08579.65
5.4.200.0240.09479.78
5.4.190.0240.09679.65
5.4.180.0380.10379.65
5.4.170.0390.10279.50
5.4.160.0320.10279.69
5.4.150.0260.09679.59
5.4.140.0310.09478.63
5.4.130.0260.10978.39
5.4.120.0280.11878.41
5.4.110.0370.07778.62
5.4.100.0300.10178.40
5.4.90.0440.10278.32
5.4.80.0360.08778.35
5.4.70.0220.09478.40
5.4.60.0350.08978.44
5.4.50.0290.09878.36
5.4.40.0350.07978.46
5.4.30.0240.09578.58
5.4.20.0320.08678.40
5.4.10.0260.08978.66
5.4.00.0270.09078.04
5.3.290.0390.09575.83
5.3.280.0330.10175.91
5.3.270.0360.10375.85
5.3.260.0390.11475.85
5.3.250.0290.09775.77
5.3.240.0260.10875.89
5.3.230.0380.11875.71
5.3.220.0350.09775.64
5.3.210.0310.09275.89
5.3.200.0220.10375.88
5.3.190.0340.10075.78
5.3.180.0330.09775.84
5.3.170.0190.11075.93
5.3.160.0340.11375.97
5.3.150.0180.10675.99
5.3.140.0350.10675.71
5.3.130.0230.12075.77
5.3.120.0260.10775.93
5.3.110.0330.08875.97
5.3.100.0360.09275.69
5.3.90.0310.09075.56
5.3.80.0400.09775.31
5.3.70.0340.09075.61
5.3.60.0340.09475.47
5.3.50.0300.09575.54
5.3.40.0300.10775.36
5.3.30.0390.11175.44
5.3.20.0220.10575.46
5.3.10.0290.10875.39
5.3.00.0310.10775.25

preferences:
40.29 ms | 401 KiB | 5 Q