3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("t0",0); define("t1",1); $a=array(); for ($n=0;$n<1000000;$n++){ $a[]=array("t0"=>0,"t1"=>1); } foreach ($a as $a2){ $test=$a2["t0"].$a2["t1"]; }

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.70.0360.11234.49
8.3.60.0390.10533.60
8.3.50.0400.13333.90
8.3.40.0270.11135.63
8.3.30.0210.12036.14
8.3.20.0130.06337.34
8.3.10.0100.06938.81
8.3.00.0100.04739.06
8.2.190.0270.11533.49
8.2.180.0290.11433.51
8.2.170.0340.09435.70
8.2.160.0270.09740.12
8.2.150.0140.05535.94
8.2.140.0100.06336.20
8.2.130.0100.05740.24
8.2.120.0200.04635.59
8.2.110.0240.08937.47
8.2.100.0330.07735.12
8.2.90.0170.08036.03
8.2.80.0190.07834.45
8.2.70.0130.08834.54
8.2.60.0160.09235.00
8.2.50.0100.08934.54
8.2.40.0100.08336.04
8.2.30.0200.08835.14
8.2.20.0200.07934.61
8.2.10.0170.08335.02
8.2.00.0030.09834.51
8.1.280.0100.11152.02
8.1.270.0210.00736.67
8.1.260.0190.00637.19
8.1.250.0190.00639.28
8.1.240.0070.01741.91
8.1.230.0190.01636.09
8.1.220.0110.01434.58
8.1.210.0130.01034.25
8.1.200.0100.01634.19
8.1.190.0180.00634.20
8.1.180.0160.00634.50
8.1.170.0100.01435.41
8.1.160.0100.01439.07
8.1.150.0160.00735.78
8.1.140.0160.00634.33
8.1.130.0130.01034.87
8.1.120.0100.01334.52
8.1.110.0090.01334.47
8.1.100.0120.00934.38
8.1.90.0130.01034.50
8.1.80.0100.01334.43
8.1.70.0110.01134.41
8.1.60.0130.01634.56
8.1.50.0170.01334.42
8.1.40.0130.01634.55
8.1.30.0200.01034.67
8.1.20.0120.01934.62
8.1.10.0140.11550.42
8.1.00.0260.12750.38
8.0.300.0240.08549.92
8.0.290.0160.10149.69
8.0.280.0280.08651.23
8.0.270.0200.09550.00
8.0.260.0290.07550.12
8.0.250.0160.09149.77
8.0.240.0200.10149.72
8.0.230.0290.08849.73
8.0.220.0200.08749.83
8.0.210.0270.09049.79
8.0.200.0240.10549.82
8.0.190.0300.09149.71
8.0.180.0270.10449.74
8.0.170.0200.10449.86
8.0.160.0300.08849.84
8.0.150.0230.09749.66
8.0.140.0300.09549.66
8.0.130.0360.12446.29
8.0.120.0270.09149.76
8.0.110.0170.10449.73
8.0.100.0300.08949.77
8.0.90.0200.09549.70
8.0.80.0450.17849.67
8.0.70.0290.08449.77
8.0.60.0230.09349.64
8.0.50.0130.10749.71
8.0.30.0710.21149.86
8.0.20.0610.17050.07
8.0.10.0200.09749.70
8.0.00.0650.15849.61
7.4.330.0170.08947.06
7.4.320.0240.09249.39
7.4.300.0230.09649.30
7.4.290.0270.09749.35
7.4.280.0240.10449.23
7.4.270.0240.09749.39
7.4.260.0260.09849.37
7.4.250.0230.10649.17
7.4.240.0230.09949.29
7.4.230.0160.09949.35
7.4.220.0530.20249.31
7.4.210.0540.16949.40
7.4.200.0200.09649.41
7.4.160.0570.15749.53
7.4.150.0740.16449.46
7.4.140.0650.17449.41
7.4.130.0450.18649.42
7.4.120.0620.18149.44
7.4.110.0540.19249.13
7.4.100.0560.17249.44
7.4.90.0650.15849.34
7.4.80.0530.17849.37
7.4.70.0590.17249.36
7.4.60.0630.16349.45
7.4.50.0200.09049.43
7.4.40.0560.16549.26
7.4.30.0590.19549.38
7.4.00.0330.14847.67
7.3.330.0160.09946.05
7.3.320.0240.10645.99
7.3.310.0240.10248.98
7.3.300.0170.10949.18
7.3.290.0230.09649.12
7.3.280.0630.21249.16
7.3.270.0790.16549.27
7.3.260.0660.25649.25
7.3.250.0760.20049.28
7.3.240.0590.18249.39
7.3.230.0620.18549.43
7.3.210.0530.25349.41
7.3.200.0570.16749.13
7.3.190.0530.21949.25
7.3.180.0860.19649.33
7.3.170.0790.18749.36
7.3.160.0700.15249.25
7.3.10.5810.13450.33
7.3.00.2220.12448.38
7.2.330.0670.18949.62
7.2.320.0530.21849.32
7.2.310.0600.28949.70
7.2.300.0600.17949.26
7.2.290.0850.28749.30
7.2.130.3080.17847.81
7.2.120.2290.14147.98
7.2.110.6220.16650.63
7.2.100.0140.16950.50
7.2.90.0460.14550.96
7.2.80.0320.15250.87
7.2.70.0330.16050.65
7.2.60.1000.12950.78
7.2.50.0260.17350.65
7.2.40.0210.15750.95
7.2.30.0170.16650.61
7.2.20.0290.16350.61
7.2.10.0210.17250.71
7.2.00.0260.16550.91
7.1.250.2680.26247.31
7.1.240.2320.26146.67
7.1.230.6430.25449.08
7.1.220.3310.25449.61
7.1.210.0560.24649.57
7.1.200.0350.19449.68
7.1.190.0170.27349.72
7.1.180.0850.27049.54
7.1.170.0780.30649.77
7.1.160.0190.26149.85
7.1.150.0320.25349.79
7.1.140.0230.26349.41
7.1.130.0270.25949.82
7.1.120.0300.24749.70
7.1.110.0200.27849.59
7.1.100.1470.19650.78
7.1.90.0960.25449.65
7.1.80.0620.25849.72
7.1.70.0380.23050.21
7.1.60.0150.26050.61
7.1.50.0200.22850.29
7.1.40.0240.26949.71
7.1.30.0160.27949.38
7.1.20.0300.27449.88
7.1.10.0260.26449.71
7.1.00.0180.24752.90
7.0.330.3160.03373.14
7.0.320.0830.03673.26
7.0.310.1570.04473.34
7.0.300.0190.04573.46
7.0.290.1150.03673.19
7.0.280.0210.04073.54
7.0.270.0260.03273.29
7.0.260.0720.03973.16
7.0.250.0240.03773.32
7.0.240.1560.03473.17
7.0.230.2480.04373.39
7.0.220.2400.04973.31
7.0.210.0100.05973.28
7.0.200.3950.03772.91
7.0.190.0150.04573.44
7.0.180.0290.03573.46
7.0.170.0800.04873.56
7.0.160.0140.05173.60
7.0.150.0160.05173.18
7.0.140.0120.06076.69
7.0.130.0230.04073.61
7.0.120.0190.03873.11
7.0.110.0290.03273.37
7.0.100.0190.04273.46
7.0.90.0240.03773.25
7.0.80.0190.03973.21
7.0.70.0170.04373.19
7.0.60.0260.07375.63
7.0.50.0270.06674.67
7.0.40.0200.07525.61
7.0.30.0240.05425.62
7.0.20.0390.06825.57
7.0.10.0200.07425.68
7.0.00.0140.06525.50
5.6.380.0510.08078.99
5.6.370.0600.07379.02
5.6.360.0400.08479.21
5.6.350.0530.08478.96
5.6.340.0420.08778.94
5.6.330.0440.08179.20
5.6.320.0470.07979.27
5.6.310.0460.09579.08
5.6.300.0420.09479.32
5.6.290.0340.09179.23
5.6.280.0330.11082.41
5.6.270.0410.08678.93
5.6.260.0310.09278.95
5.6.250.0430.08078.94
5.6.240.0440.08579.08
5.6.230.0400.09779.21
5.6.220.0400.08378.98
5.6.210.0370.11782.07
5.6.200.0300.12180.90
5.6.190.0370.11682.08
5.6.180.0460.08981.92
5.6.170.0450.09582.05
5.6.160.0330.09381.96
5.6.150.0450.10580.99
5.6.140.0340.09080.79
5.6.130.0390.08581.07
5.6.120.0310.10682.33
5.6.110.0340.11582.39
5.6.100.0310.12982.33
5.6.90.0380.11182.35
5.6.80.0370.11182.06
5.6.70.0490.08278.68
5.6.60.0340.09878.86
5.6.50.0470.07378.87
5.6.40.0400.08678.73
5.6.30.0440.08278.80
5.6.20.0510.07579.03
5.6.10.0310.09379.01
5.6.00.0340.09579.10
5.5.380.0400.07575.95
5.5.370.0400.09375.69
5.5.360.0450.07275.64
5.5.350.0410.10580.33
5.5.340.0370.09579.02
5.5.330.0280.09180.29
5.5.320.0320.11480.23
5.5.310.0540.11280.21
5.5.300.0230.11379.03
5.5.290.0400.11279.11
5.5.280.0380.08580.65
5.5.270.0300.09480.63
5.5.260.0310.11780.63
5.5.250.0350.10180.33
5.5.240.0430.11280.30
5.5.230.0260.08675.68
5.5.220.0490.07075.64
5.5.210.0370.07675.66
5.5.200.0330.09475.80
5.5.190.0410.07575.63
5.5.180.0370.07675.80
5.5.170.0360.08275.78
5.5.160.0360.09275.84
5.5.150.0360.08375.71
5.5.140.0290.08775.43
5.5.130.0390.08175.70
5.5.120.0300.08375.69
5.5.110.0100.10775.74
5.5.100.0420.08075.64
5.5.90.0430.07975.35
5.5.80.0320.08975.74
5.5.70.0350.09175.79
5.5.60.0610.05875.74
5.5.50.0430.07675.67
5.5.40.0410.07675.78
5.5.30.0300.09475.77
5.5.20.0380.08075.73
5.5.10.0370.09175.70
5.5.00.0500.07175.42
5.4.450.0490.09179.66
5.4.440.0380.11079.71
5.4.430.0670.07779.84
5.4.420.0490.09579.78
5.4.410.0430.10879.71
5.4.400.0400.09779.56
5.4.390.0490.10779.48
5.4.380.0730.12079.55
5.4.370.0530.12479.44
5.4.360.0400.13079.35
5.4.350.0380.11779.40
5.4.340.0270.12879.39
5.4.330.0300.08675.43
5.4.320.0630.09879.41
5.4.310.0600.12579.57
5.4.300.0390.11779.47
5.4.290.0250.13279.41
5.4.280.0500.12379.40
5.4.270.0520.11079.46
5.4.260.0450.14179.52
5.4.250.0490.12479.38
5.4.240.0480.11479.58
5.4.230.0450.12879.31
5.4.220.0570.11979.32
5.4.210.0560.09779.40
5.4.200.0540.12278.26
5.4.190.0500.11379.48
5.4.180.0450.11979.30
5.4.170.0500.10979.33
5.4.160.0420.11179.48
5.4.150.0420.11379.38
5.4.140.0570.10878.17
5.4.130.0340.12378.29
5.4.120.0330.12278.27
5.4.110.0390.11978.22
5.4.100.0630.12078.39
5.4.90.0640.11378.22
5.4.80.0540.13478.25
5.4.70.0450.14078.27
5.4.60.0370.11878.15
5.4.50.0440.11178.16
5.4.40.0440.11878.31
5.4.30.0470.13178.14
5.4.20.0500.12578.08
5.4.10.0390.13378.31
5.4.00.0390.08975.53

preferences:
36.99 ms | 401 KiB | 5 Q