3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 10000; $a = new SplFixedArray($n); for($i = 0; $i < $n; $i++) $a[$i] = range(1,RAND(10,100)); print count($a);

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)
7.4.10.0310.01442.11
7.4.00.0160.02941.98
7.3.130.0200.02041.99
7.3.120.0220.01942.35
7.3.110.0330.01742.06
7.3.100.0190.01642.02
7.3.90.0140.02442.11
7.3.80.0100.02042.45
7.3.70.0170.01441.96
7.3.60.0150.01541.79
7.3.50.0240.02141.88
7.3.40.0130.01642.07
7.3.30.0100.01741.91
7.3.20.0170.01058.46
7.3.10.0170.01758.55
7.3.00.0150.00958.68
7.2.260.0270.02342.25
7.2.250.0250.02542.33
7.2.240.0110.02142.26
7.2.230.0190.01942.36
7.2.220.0200.02342.27
7.2.210.0200.01342.73
7.2.200.0100.02441.99
7.2.190.0140.03141.81
7.2.180.0100.02342.27
7.2.170.0190.01342.11
7.2.160.0160.01642.37
7.2.150.0110.01158.56
7.2.140.0140.01458.88
7.2.130.0100.01758.86
7.2.120.0170.00358.91
7.2.110.0030.02058.72
7.2.100.0100.01658.58
7.2.90.0070.02258.85
7.2.80.0070.01658.90
7.2.70.0170.02458.94
7.2.60.0200.01458.93
7.2.50.0260.01358.79
7.2.40.0170.00758.66
7.2.30.0070.02558.94
7.2.20.0110.01458.79
7.2.10.0180.00758.87
7.2.00.0310.01659.96
7.1.330.0070.02157.80
7.1.320.0070.02157.94
7.1.310.0060.01957.79
7.1.300.0130.01657.78
7.1.290.0070.01857.54
7.1.280.0060.01957.84
7.1.270.0070.01857.86
7.1.260.0100.01357.77
7.1.250.0150.01557.78
7.1.240.0070.02257.64
7.1.230.0060.02257.73
7.1.220.0100.01357.83
7.1.210.0130.01757.46
7.1.200.0070.02357.51
7.1.190.0160.01657.82
7.1.180.0160.01657.74
7.1.170.0030.02357.81
7.1.160.0100.02057.75
7.1.150.0190.00957.59
7.1.140.0030.02057.82
7.1.130.0100.01357.80
7.1.120.0150.01557.54
7.1.110.0100.02457.51
7.1.100.0180.01157.76
7.1.90.0100.01757.92
7.1.80.0190.01057.70
7.1.70.0050.01858.45
7.1.60.0140.01758.59
7.1.50.0130.02058.27
7.1.40.0060.02557.72
7.1.30.0170.01757.67
7.1.20.0090.02657.63
7.1.10.0100.02157.87
7.1.00.0130.04861.15
7.0.330.0180.01057.50
7.0.320.0030.02257.48
7.0.310.0030.02057.48
7.0.300.0140.01757.59
7.0.290.0030.02057.13
7.0.280.0190.01957.16
7.0.270.0070.01657.57
7.0.260.0070.01757.42
7.0.250.0120.00957.71
7.0.240.0140.01857.38
7.0.230.0100.01457.45
7.0.220.0060.01659.59
7.0.210.0030.02057.43
7.0.200.0450.01358.23
7.0.190.0100.01957.58
7.0.180.0200.01357.50
7.0.170.0130.01657.38
7.0.160.0120.01257.43
7.0.150.0070.02457.25
7.0.140.0100.05060.67
7.0.130.0170.01057.63
7.0.120.0130.01357.63
7.0.110.0070.01757.51
7.0.100.0030.02257.54
7.0.90.0070.02957.41
7.0.80.2720.02952.31
7.0.70.3310.05052.19
7.0.60.3560.04052.27
7.0.50.3320.05452.63
7.0.40.0120.03516.83
7.0.30.0150.05516.80
7.0.20.0100.03416.83
7.0.10.0070.03316.69
7.0.00.0100.03116.82
5.6.400.0330.06079.35
5.6.390.0270.08179.36
5.6.380.0240.07878.94
5.6.370.0300.08079.57
5.6.360.0390.06979.70
5.6.350.0440.05879.52
5.6.340.0230.09779.55
5.6.330.0450.06579.66
5.6.320.0520.05279.65
5.6.310.0430.06379.23
5.6.300.0300.08379.36
5.6.290.0330.06779.36
5.6.280.0280.10882.63
5.6.270.0230.09079.38
5.6.260.0300.08379.48
5.6.250.0280.08279.61
5.6.240.0330.06679.29
5.6.230.0250.10282.48
5.6.220.0400.09982.37
5.6.210.0320.13382.50
5.6.200.0350.09282.63
5.6.190.0170.08882.64
5.6.180.0350.11582.67
5.6.170.0390.10482.64
5.6.160.0380.08582.66
5.6.150.0350.10482.63
5.6.140.0220.08082.54
5.6.130.0230.07182.69
5.6.120.0410.08482.62
5.6.110.0370.11882.49
5.6.100.0280.10582.68
5.6.90.0250.09882.80
5.6.80.0270.07282.31
5.6.70.0380.06382.51
5.6.60.0270.10682.33
5.6.50.0430.08582.20
5.6.40.0220.10282.42
5.6.30.0320.06582.30
5.6.20.0270.09082.33
5.6.10.0280.10682.33
5.6.00.0350.10282.26
5.5.380.0570.06479.32
5.5.370.0210.07682.27
5.5.360.0240.09782.24
5.5.350.0220.11582.35
5.5.340.0300.10682.57
5.5.330.0200.10582.34
5.5.320.0300.08982.49
5.5.310.0270.07482.46
5.5.300.0230.11082.45
5.5.290.0250.09582.49
5.5.280.0250.09782.58
5.5.270.0330.09082.42
5.5.260.0350.08582.60
5.5.250.0230.08382.39
5.5.240.0230.08182.21
5.5.230.0180.10582.20
5.5.220.0300.07382.08
5.5.210.0320.10882.04
5.5.200.0280.09881.96
5.5.190.0280.09582.28
5.5.180.0380.08382.02
5.5.170.0330.06279.14
5.5.160.0390.07582.24
5.5.150.0310.09182.16
5.5.140.0200.10682.22
5.5.130.0280.08881.89
5.5.120.0340.09682.19
5.5.110.0280.07382.21
5.5.100.0380.07782.21
5.5.90.0380.10281.98
5.5.80.0340.09282.18
5.5.70.0280.09881.96
5.5.60.0380.09981.92
5.5.50.0240.10782.15
5.5.40.0180.10982.07
5.5.30.0320.09982.18
5.5.20.0210.08682.01
5.5.10.0250.08982.04
5.5.00.0300.06682.03
5.4.450.0220.10880.12
5.4.440.0270.07480.12
5.4.430.0430.06380.01
5.4.420.0250.08580.13
5.4.410.0400.07379.90
5.4.400.0330.10479.76
5.4.390.0130.07779.75
5.4.380.0180.10479.91
5.4.370.0450.10479.81
5.4.360.0200.10379.96
5.4.350.0200.10079.84
5.4.340.0370.09279.82
5.4.330.0260.06975.82
5.4.320.0300.11279.98
5.4.310.0270.09779.73
5.4.300.0350.10879.94
5.4.290.0210.08979.74
5.4.280.0290.09479.81
5.4.270.0280.10279.79
5.4.260.0200.11679.76
5.4.250.0300.08679.95
5.4.240.0230.08479.70
5.4.230.0270.08279.80
5.4.220.0260.09979.76
5.4.210.0390.09979.88
5.4.200.0280.10779.74
5.4.190.0250.07579.79
5.4.180.0250.07779.70
5.4.170.0310.09579.83
5.4.160.0300.09679.70
5.4.150.0120.08379.77
5.4.140.0350.09678.60
5.4.130.0230.06878.51
5.4.120.0230.06878.53
5.4.110.0270.09478.43
5.4.100.0330.07478.54
5.4.90.0320.08878.32
5.4.80.0260.08678.38
5.4.70.0280.07878.50
5.4.60.0300.09578.31
5.4.50.0230.09978.45
5.4.40.0330.09578.49
5.4.30.0330.09578.32
5.4.20.0400.08778.47
5.4.10.0220.09978.57
5.4.00.0250.06878.16
5.3.290.0300.10676.06
5.3.280.0280.10575.93
5.3.270.0250.07875.98
5.3.260.0150.08875.92
5.3.250.0370.09675.89
5.3.240.0260.08975.93
5.3.230.0220.10575.93
5.3.220.0420.09375.91
5.3.210.0250.08075.96
5.3.200.0260.08675.90
5.3.190.0280.08875.93
5.3.180.0360.08075.98
5.3.170.0310.11776.24
5.3.160.0310.09375.97
5.3.150.0260.08875.94
5.3.140.0370.07375.98
5.3.130.0230.08475.95
5.3.120.0200.08375.93
5.3.110.0240.09675.98
5.3.100.0250.10175.68
5.3.90.0240.07475.76
5.3.80.0350.06375.64
5.3.70.0260.10375.53
5.3.60.0330.07475.59
5.3.50.0330.07075.55
5.3.40.0250.10075.63
5.3.30.0290.11075.50
5.3.20.0300.08975.34
5.3.10.0180.08375.31
5.3.00.0260.08475.18
5.2.170.0100.06312.01
5.2.160.0100.03312.01
5.2.150.0030.07012.01
5.2.140.0000.03012.01
5.2.130.0000.02712.01
5.2.120.0000.05712.01
5.2.110.0070.06012.01
5.2.100.0000.03012.01
5.2.90.0030.06312.01
5.2.80.0000.03012.01
5.2.70.0000.03012.01
5.2.60.0030.06312.01
5.2.50.0030.06712.01
5.2.40.0100.06012.01
5.2.30.0100.03712.01
5.2.20.0000.06712.01
5.2.10.0100.06012.01
5.2.00.0030.03312.01
5.1.60.0000.02712.01
5.1.50.0000.02712.01
5.1.40.0000.02712.01
5.1.30.0000.03012.01
5.1.20.0000.03012.01
5.1.10.0070.02312.01
5.1.00.0000.02712.01
5.0.50.0030.01712.01
5.0.40.0000.02012.01
5.0.30.0030.02312.01
5.0.20.0000.01712.01
5.0.10.0000.02012.01
5.0.00.0000.02712.01
4.4.90.0000.01312.01
4.4.80.0000.03712.01
4.4.70.0000.03012.01
4.4.60.0000.01712.01
4.4.50.0070.01012.01
4.4.40.0070.02012.01
4.4.30.0000.01712.01
4.4.20.0070.01012.01
4.4.10.0030.01312.01
4.4.00.0000.02712.01
4.3.110.0030.01312.01
4.3.100.0030.01012.01
4.3.90.0000.01312.01
4.3.80.0030.02012.01
4.3.70.0000.01712.01
4.3.60.0000.01312.01
4.3.50.0000.01312.01
4.3.40.0000.02012.01
4.3.30.0030.01012.01
4.3.20.0000.01312.01
4.3.10.0000.03712.01
4.3.00.0070.00712.01

preferences:
35.49 ms | 401 KiB | 5 Q