3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 10; $a = new \SplFixedArray($n); for($i = 0; $i < $n; $i++) $a[$i] = range(1,RAND(10,100)); print $a[$i-1]; 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.0090.00615.09
7.4.00.0110.00614.90
7.3.130.0070.01115.04
7.3.120.0090.00715.05
7.3.110.0050.01014.83
7.3.100.0050.01114.73
7.3.90.0070.01014.91
7.3.80.0070.00614.82
7.3.70.0080.00614.92
7.3.60.0030.00914.75
7.3.50.0050.01014.73
7.3.40.0070.00614.82
7.3.30.0060.00814.95
7.3.20.0040.01016.76
7.3.10.0050.00816.67
7.3.00.0050.00616.69
7.2.260.0030.01315.00
7.2.250.0080.01015.02
7.2.240.0050.01015.15
7.2.230.0040.01115.07
7.2.220.0080.00715.15
7.2.210.0060.00915.21
7.2.200.0050.01015.04
7.2.190.0050.00814.92
7.2.180.0040.00914.91
7.2.170.0140.00315.12
7.2.160.0090.00615.19
7.2.150.0110.00017.02
7.2.140.0070.00717.05
7.2.130.0000.01216.88
7.2.120.0030.00916.99
7.2.110.0030.00616.80
7.2.100.0040.00717.05
7.2.90.0100.00316.93
7.2.80.0030.01317.03
7.2.70.0000.01316.80
7.2.60.0130.00316.80
7.2.50.0040.01116.78
7.2.40.0000.01516.86
7.2.30.0070.01117.03
7.2.20.0080.00816.95
7.2.10.0030.00617.21
7.2.00.0070.01016.81
7.1.330.0050.00815.80
7.1.320.0090.00815.91
7.1.310.0070.01015.84
7.1.300.0070.00715.93
7.1.290.0090.00615.79
7.1.280.0070.00715.77
7.1.270.0100.00315.64
7.1.260.0080.00715.69
7.1.250.0070.00715.93
7.1.240.0060.00916.03
7.1.230.0000.00815.94
7.1.220.0070.00715.71
7.1.210.0040.01415.87
7.1.200.0100.00715.82
7.1.190.0110.00315.98
7.1.180.0030.01015.78
7.1.170.0060.00615.92
7.1.160.0060.00315.59
7.1.150.0110.00415.84
7.1.140.0070.00315.81
7.1.130.0100.00015.86
7.1.120.0070.00415.98
7.1.110.0090.00615.98
7.1.100.0030.01015.95
7.1.90.0060.00315.82
7.1.80.0040.01115.55
7.1.70.0100.00516.29
7.1.60.0130.00817.88
7.1.50.0050.01316.44
7.1.40.0000.01315.84
7.1.30.0030.00915.63
7.1.20.0040.01115.76
7.1.10.0030.01016.00
7.1.00.0010.04119.05
7.0.330.0040.00815.34
7.0.320.0000.01515.45
7.0.310.0040.01115.41
7.0.300.0030.01215.49
7.0.290.0090.00615.43
7.0.280.0130.00015.34
7.0.270.0130.00315.45
7.0.260.0040.01115.55
7.0.250.0140.00415.16
7.0.240.0040.01115.32
7.0.230.0070.00715.29
7.0.220.0100.00715.48
7.0.210.0070.00715.46
7.0.200.0070.00516.15
7.0.190.0070.00715.48
7.0.180.0070.00415.58
7.0.170.0030.00515.43
7.0.160.0140.00315.52
7.0.150.0040.00415.54
7.0.140.0050.03818.68
7.0.130.0090.00315.56
7.0.120.0070.00715.36
7.0.110.0080.00415.59
7.0.100.0060.00915.55
7.0.90.0030.02817.74
7.0.80.0090.02717.68
7.0.70.0060.02217.75
7.0.60.0140.04517.52
7.0.50.0030.04517.98
7.0.40.0030.04116.86
7.0.30.0050.04316.77
7.0.20.0070.04016.77
7.0.10.0050.04416.80
7.0.00.0100.04516.66
5.6.400.0110.00014.78
5.6.390.0030.01014.82
5.6.380.0060.00614.68
5.6.370.0100.00314.77
5.6.360.0030.01414.54
5.6.350.0070.01014.74
5.6.340.0030.01214.14
5.6.330.0060.01214.54
5.6.320.0100.00614.52
5.6.310.0070.00714.32
5.6.300.0070.00414.70
5.6.290.0060.00314.59
5.6.280.0130.03317.73
5.6.270.0030.00914.55
5.6.260.0100.00614.44
5.6.250.0090.00414.47
5.6.240.0040.00714.40
5.6.230.0040.02917.68
5.6.220.0080.04117.51
5.6.210.0070.04217.49
5.6.200.0070.03217.99
5.6.190.0030.04317.84
5.6.180.0040.03717.83
5.6.170.0080.04017.75
5.6.160.0120.03117.79
5.6.150.0080.03617.80
5.6.140.0100.04717.75
5.6.130.0080.04517.79
5.6.120.0070.04217.83
5.6.110.0150.02017.72
5.6.100.0050.04117.77
5.6.90.0030.04917.91
5.6.80.0050.04417.37
5.6.70.0120.04017.40
5.6.60.0080.04217.40
5.6.50.0060.02717.22
5.6.40.0070.04717.38
5.6.30.0050.02717.38
5.6.20.0050.03017.34
5.6.10.0050.03217.51
5.6.00.0030.02717.38
5.5.380.0130.00014.37
5.5.370.0070.02417.52
5.5.360.0030.04817.53
5.5.350.0050.04517.41
5.5.340.0110.04117.55
5.5.330.0070.02717.72
5.5.320.0080.03817.69
5.5.310.0060.04417.83
5.5.300.0030.03217.69
5.5.290.0120.04217.82
5.5.280.0030.03817.63
5.5.270.0080.04417.67
5.5.260.0030.03717.78
5.5.250.0070.03717.57
5.5.240.0070.03317.34
5.5.230.0070.04017.29
5.5.220.0070.03817.14
5.5.210.0080.03617.26
5.5.200.0130.03017.23
5.5.190.0020.04517.23
5.5.180.0050.03317.21
5.5.170.0040.01214.60
5.5.160.0050.04017.19
5.5.150.0060.04517.22
5.5.140.0110.03617.26
5.5.130.0100.04017.23
5.5.120.0050.04217.30
5.5.110.0030.04617.32
5.5.100.0140.03417.41
5.5.90.0050.03617.44
5.5.80.0090.03517.36
5.5.70.0050.04017.01
5.5.60.0120.03717.18
5.5.50.0050.04217.32
5.5.40.0050.04517.31
5.5.30.0100.04217.23
5.5.20.0020.04617.30
5.5.10.0040.04417.06
5.5.00.0060.04217.25
5.4.450.0060.04015.27
5.4.440.0100.04215.32
5.4.430.0030.04515.24
5.4.420.0120.03215.22
5.4.410.0030.03815.19
5.4.400.0080.01915.01
5.4.390.0080.03714.97
5.4.380.0080.03615.08
5.4.370.0050.04214.90
5.4.360.0040.04315.04
5.4.350.0050.03815.10
5.4.340.0080.02215.04
5.4.330.0030.00711.15
5.4.320.0080.02415.06
5.4.310.0080.03715.00
5.4.300.0020.02515.10
5.4.290.0080.02215.03
5.4.280.0050.04015.13
5.4.270.0080.04215.08
5.4.260.0050.04015.17
5.4.250.0080.02415.02
5.4.240.0050.04515.14
5.4.230.0080.02815.01
5.4.220.0120.03014.94
5.4.210.0080.03815.16
5.4.200.0130.03115.17
5.4.190.0060.02615.19
5.4.180.0110.03215.09
5.4.170.0030.03615.02
5.4.160.0080.03815.04
5.4.150.0030.04015.00
5.4.140.0090.03913.69
5.4.130.0060.03713.63
5.4.120.0030.02313.66
5.4.110.0070.03913.76
5.4.100.0030.04013.93
5.4.90.0080.03613.77
5.4.80.0080.03813.75
5.4.70.0020.02713.69
5.4.60.0060.03713.65
5.4.50.0100.03113.66
5.4.40.0050.02313.71
5.4.30.0080.01513.57
5.4.20.0080.03113.59
5.4.10.0030.04013.68
5.4.00.0080.03213.49
5.3.290.0050.02212.66
5.3.280.0050.04012.63
5.3.270.0060.03012.64
5.3.260.0080.02812.65
5.3.250.0030.02512.56
5.3.240.0100.02712.62
5.3.230.0020.04012.63
5.3.220.0100.03912.62
5.3.210.0090.02912.61
5.3.200.0030.04012.60
5.3.190.0080.03712.58
5.3.180.0050.03812.63
5.3.170.0030.04212.54
5.3.160.0030.04512.62
5.3.150.0100.03812.54
5.3.140.0000.04012.59
5.3.130.0000.02612.53
5.3.120.0030.04512.62
5.3.110.0030.02512.64
5.3.100.0050.04012.31
5.3.90.0060.03512.33
5.3.80.0090.03212.28
5.3.70.0030.02512.36
5.3.60.0070.03412.34
5.3.50.0020.04312.22
5.3.40.0020.04512.30
5.3.30.0060.03612.19
5.3.20.0060.02612.16
5.3.10.0060.03612.14
5.3.00.0030.03912.14
5.2.170.0100.06313.57
5.2.160.0100.05713.57
5.2.150.0000.04013.57
5.2.140.0130.05313.57
5.2.130.0070.05713.57
5.2.120.0000.06313.57
5.2.110.0070.05713.57
5.2.100.0170.05013.57
5.2.90.0100.05313.57
5.2.80.0070.07313.57
5.2.70.0030.06713.57
5.2.60.0030.06713.57
5.2.50.0130.04713.57
5.2.40.0070.02713.57
5.2.30.0030.02713.57
5.2.20.0130.03013.57
5.2.10.0030.06313.57
5.2.00.0070.03713.57
5.1.60.0030.05313.57
5.1.50.0030.05713.57
5.1.40.0030.03313.57
5.1.30.0030.05313.57
5.1.20.0030.03013.57
5.1.10.0000.05713.57
5.1.00.0100.05313.57
5.0.50.0100.03713.57
5.0.40.0070.04013.57
5.0.30.0030.05313.57
5.0.20.0100.03313.57
5.0.10.0030.04313.57
5.0.00.0030.06713.57
4.4.90.0070.03313.57
4.4.80.0100.02013.57
4.4.70.0070.03313.57
4.4.60.0000.03713.57
4.4.50.0030.02713.57
4.4.40.0000.05013.57
4.4.30.0000.03313.57
4.4.20.0070.02013.57
4.4.10.0030.03013.57
4.4.00.0000.05013.57
4.3.110.0070.02313.57
4.3.100.0000.04013.57
4.3.90.0000.03713.57
4.3.80.0030.05313.57
4.3.70.0000.03713.57
4.3.60.0070.03013.57
4.3.50.0030.02713.57
4.3.40.0000.03013.57
4.3.30.0000.02013.57
4.3.20.0000.03713.57
4.3.10.0000.03013.57
4.3.00.0000.02313.57

preferences:
36.72 ms | 401 KiB | 5 Q