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+1); } } 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.0610.02478.99
8.3.50.0470.02679.24
8.3.40.0340.01447.73
8.3.30.0230.02647.92
8.3.20.0260.00349.26
8.3.10.0140.00351.56
8.3.00.0170.00348.59
8.2.180.0630.02778.63
8.2.170.0340.01747.66
8.2.160.0370.01049.06
8.2.150.0220.00347.80
8.2.140.0140.01447.91
8.2.130.0180.00949.54
8.2.120.0070.00747.80
8.2.110.0040.01247.33
8.1.280.0700.01778.00
8.1.270.0240.00350.82
8.1.260.0260.00048.77
8.1.250.0230.01051.29
8.1.240.0200.00346.75
7.4.10.0430.03076.43
7.4.00.0490.01476.42
7.3.130.0500.03376.45
7.3.120.0440.02676.54
7.3.110.0500.03376.51
7.3.100.0420.01375.99
7.3.90.0420.02376.34
7.3.80.0370.01476.25
7.3.70.0270.02776.52
7.3.60.0330.01776.18
7.3.50.0320.02576.39
7.3.40.0500.01376.24
7.3.30.0300.03776.50
7.3.20.0220.01678.71
7.3.10.3510.02078.56
7.3.00.0110.02578.82
7.2.260.0480.03876.69
7.2.250.0570.02776.16
7.2.240.0310.02876.24
7.2.230.0270.03076.46
7.2.220.0480.02076.47
7.2.210.0400.02076.61
7.2.200.0360.02976.44
7.2.190.0170.05476.30
7.2.180.0340.03476.63
7.2.170.0440.01076.51
7.2.160.0400.02676.71
7.2.150.0090.04178.94
7.2.140.0200.01778.83
7.2.130.0180.02378.92
7.2.120.0200.02078.87
7.2.110.0300.02278.57
7.2.100.0330.02078.97
7.2.90.0400.02978.64
7.2.80.0320.03578.59
7.2.70.0150.01113.52
7.2.60.2390.01678.86
7.2.50.0170.00511.61
7.2.40.0100.01011.61
7.2.30.0160.00712.08
7.2.20.0270.03778.50
7.2.10.0310.03878.62
7.2.00.0360.02578.94
7.1.330.0170.02777.64
7.1.320.0130.03077.91
7.1.310.0140.02477.71
7.1.300.0160.02977.69
7.1.290.0100.04577.89
7.1.280.0170.03077.92
7.1.270.0190.02677.52
7.1.260.0190.02877.68
7.1.250.0210.02777.76
7.1.240.1100.02977.66
7.1.230.0130.03077.59
7.1.220.0230.03777.52
7.1.210.0420.03177.83
7.1.200.0580.02877.69
7.1.190.0400.03377.81
7.1.180.0440.03477.72
7.1.170.0320.03577.91
7.1.160.0360.03677.57
7.1.150.0400.02877.71
7.1.140.0400.02977.52
7.1.130.0380.03277.70
7.1.120.0250.04077.56
7.1.110.0340.03077.79
7.1.100.0360.03478.57
7.1.90.0250.04977.82
7.1.80.0330.03377.59
7.1.70.0470.02878.48
7.1.60.0340.03478.45
7.1.50.0310.03887.22
7.1.40.0280.04277.69
7.1.30.0460.02877.84
7.1.20.0160.00811.61
7.1.10.0450.03077.62
7.1.00.0400.03777.62
7.0.330.0330.03977.44
7.0.320.0340.05077.46
7.0.310.0430.03977.45
7.0.300.0340.03277.36
7.0.290.0220.05577.20
7.0.280.0340.04277.31
7.0.270.0330.04377.43
7.0.260.0370.03777.64
7.0.250.0380.02777.07
7.0.240.0280.03777.30
7.0.230.0310.04277.55
7.0.220.0720.03477.17
7.0.210.0430.04377.48
7.0.200.1370.03677.90
7.0.190.0280.04577.48
7.0.180.0470.03277.26
7.0.170.0500.04077.43
7.0.160.0320.04277.50
7.0.150.0360.04677.32
7.0.140.0240.04377.38
7.0.130.0290.04677.17
7.0.120.0160.00511.61
7.0.110.0500.03477.20
7.0.100.0380.04177.48
7.0.90.0510.03477.20
7.0.80.0260.05277.49
7.0.70.0340.03777.71
7.0.60.0240.03877.36
7.0.50.0250.05277.48
7.0.40.0320.03113.49
7.0.30.0260.04513.37
7.0.20.0170.05013.57
7.0.10.0290.04513.48
7.0.00.0180.04713.29
5.6.400.0500.09778.77
5.6.390.0300.09979.29
5.6.380.0520.09778.75
5.6.370.0550.07678.90
5.6.360.0460.08579.02
5.6.350.0520.08479.14
5.6.340.0540.08479.22
5.6.330.0560.08579.12
5.6.320.0490.08479.29
5.6.310.0630.08079.18
5.6.300.0410.09279.26
5.6.290.0510.11478.89
5.6.280.0650.09278.71
5.6.270.0630.07579.16
5.6.260.0490.08879.31
5.6.250.0560.07579.07
5.6.240.0540.09279.02
5.6.230.0450.08879.09
5.6.220.0570.09178.89
5.6.210.0420.09078.95
5.6.200.0470.08679.16
5.6.190.0590.07579.09
5.6.180.0540.09878.95
5.6.170.0380.11179.10
5.6.160.0510.08178.75
5.6.150.0440.08979.19
5.6.140.0620.07579.17
5.6.130.0640.07079.09
5.6.120.0480.10278.83
5.6.110.0610.07978.84
5.6.100.0460.08679.06
5.6.90.0390.10578.90
5.6.80.0420.09379.27
5.6.70.0450.08678.85
5.6.60.0410.10879.06
5.6.50.0550.09178.91
5.6.40.0450.08479.07
5.6.30.0360.09678.82
5.6.20.0410.09978.85
5.6.10.0490.08878.64
5.6.00.0420.08679.18
5.5.380.0350.11478.71
5.5.370.0540.09578.95
5.5.360.0300.11979.36
5.5.350.0530.07678.79
5.5.340.0360.11779.11
5.5.330.0610.07879.09
5.5.320.0490.08179.02
5.5.310.0680.06179.01
5.5.300.0470.08278.84
5.5.290.0450.08678.95
5.5.280.0540.09178.95
5.5.270.0360.09678.81
5.5.260.0500.08779.16
5.5.250.0440.08278.79
5.5.240.0570.08278.58
5.5.230.0410.08578.94
5.5.220.0310.10078.75
5.5.210.0500.07978.91
5.5.200.0480.08279.00
5.5.190.0520.08578.95
5.5.180.0240.10079.05
5.5.170.0480.10779.19
5.5.160.0680.07078.79
5.5.150.0470.08079.00
5.5.140.0440.08478.95
5.5.130.0450.08278.71
5.5.120.0460.08279.02
5.5.110.0360.10578.75
5.5.100.0330.09379.15
5.5.90.0230.10678.70
5.5.80.0430.08378.79
5.5.70.0420.09178.49
5.5.60.0350.08678.95
5.5.50.0340.09878.62
5.5.40.0430.08679.02
5.5.30.0420.08778.90
5.5.20.0400.08378.98
5.5.10.0510.09579.07
5.5.00.0510.08579.03
5.4.450.0300.10275.63
5.4.440.0560.09275.34
5.4.430.0340.09175.86
5.4.420.0460.07975.80
5.4.410.0480.08075.54
5.4.400.0430.08375.76
5.4.390.0380.08675.68
5.4.380.0410.07975.43
5.4.370.0470.07675.85
5.4.360.0400.10175.62
5.4.350.0360.08075.68
5.4.340.0500.07075.72
5.4.330.0400.09675.68
5.4.320.0410.07975.66
5.4.310.0510.08975.65
5.4.300.0350.09679.66
5.4.290.0450.08179.69
5.4.280.0420.09479.49
5.4.270.0420.09179.67
5.4.260.0390.11779.75
5.4.250.0450.08079.70
5.4.240.0390.08979.57
5.4.230.0400.08779.54
5.4.220.0470.09279.63
5.4.210.0470.07779.65
5.4.200.0510.10579.64
5.4.190.0590.10279.69
5.4.180.0440.09279.67
5.4.170.0310.09279.70
5.4.160.0560.10179.74
5.4.150.0430.09279.69
5.4.140.0540.09978.32
5.4.130.0410.09578.48
5.4.120.0550.09978.31
5.4.110.0300.09078.43
5.4.100.0530.11478.40
5.4.90.0440.08978.37
5.4.80.0450.09878.54
5.4.70.0360.11978.31
5.4.60.0710.09978.34
5.4.50.0520.07078.31
5.4.40.0730.09178.37
5.4.30.0490.08478.40
5.4.20.0540.10378.28
5.4.10.0490.08978.38
5.4.00.0530.08877.94
5.3.290.0320.10273.89
5.3.280.0280.11375.76
5.3.270.0610.11275.84
5.3.260.0440.11575.87
5.3.250.0570.10775.81
5.3.240.0380.09275.71
5.3.230.0500.08175.63
5.3.220.0500.11775.75
5.3.210.0550.10875.63
5.3.200.0340.11175.73
5.3.190.0620.10775.87
5.3.180.0300.11175.85
5.3.170.0550.11075.85
5.3.160.0450.12275.93
5.3.150.0520.08475.87
5.3.140.0670.10175.85
5.3.130.0340.09375.76
5.3.120.0480.14575.78
5.3.110.0400.10975.73
5.3.100.0410.09675.50
5.3.90.0530.11175.65
5.3.80.0340.09475.51
5.3.70.0360.09975.42
5.3.60.0530.10675.59
5.3.50.0480.10175.39
5.3.40.0410.10575.44
5.3.30.0580.09875.36
5.3.20.0580.11375.30
5.3.10.0350.09975.20
5.3.00.0600.10475.21

preferences:
36.87 ms | 401 KiB | 5 Q