3v4l.org

run code in 300+ PHP versions simultaneously
<?php function randList($number) { for ($i=0;$i<$number;$i++) { yield rand(1, 10); } } foreach (randList(1000000) as $number) { //echo "$number "; } echo "\n";

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.3.10.0070.09016.33
7.3.00.0000.09416.56
7.2.130.0030.08816.83
7.2.120.0130.09216.76
7.2.110.0130.09216.95
7.2.100.0030.08316.63
7.2.90.0070.09816.96
7.2.80.0030.10416.88
7.2.70.0170.09216.95
7.2.60.0130.09516.70
7.2.50.0000.09916.91
7.2.40.0070.09316.72
7.2.30.0030.09916.73
7.2.20.0030.10416.71
7.2.10.0060.10117.02
7.2.00.0100.10718.11
7.1.250.0000.19315.73
7.1.70.0070.11017.21
7.1.60.0100.17319.30
7.1.50.0070.16716.92
7.1.00.0070.21022.30
7.0.200.0070.10516.89
7.0.140.0070.20022.07
7.0.60.0130.18319.96
7.0.50.0100.11317.73
7.0.40.0100.13320.02
7.0.30.0530.15020.23
7.0.20.0300.17020.26
7.0.10.0130.16020.05
7.0.00.0070.16320.19
5.6.280.0000.33021.10
5.6.210.0100.26320.48
5.6.200.0070.29318.16
5.6.190.0070.27720.42
5.6.180.0130.29020.41
5.6.170.0300.20720.44
5.6.160.0130.23320.50
5.6.150.0130.24718.11
5.6.140.0230.27018.28
5.6.130.0130.25718.20
5.6.120.0030.22021.00
5.6.110.0100.27320.97
5.6.100.0100.26320.98
5.6.90.0100.25720.98
5.6.80.0200.24720.57
5.5.350.0070.28320.40
5.5.340.0000.27017.98
5.5.330.0030.24720.56
5.5.320.0030.26020.24
5.5.310.0270.27020.30
5.5.300.0030.24018.03
5.5.290.0070.22317.92
5.5.280.0070.27320.68
5.5.270.0070.22320.75
5.5.260.0100.26020.64
5.5.250.0130.28320.69
5.5.240.0030.27320.03
5.4.450.0070.05319.49
5.4.440.0070.04719.33
5.4.430.0030.04019.46
5.4.420.0100.03319.47
5.4.410.0170.03019.34
5.4.400.0070.04019.14
5.4.390.0070.03319.26
5.4.380.0000.07719.24
5.4.370.0030.03719.15
5.4.360.0070.07718.85
5.4.350.0030.04018.92
5.4.340.0100.04019.21
5.4.320.0000.08019.01
5.4.310.0030.08019.12
5.4.300.0000.04019.15
5.4.290.0030.04319.08
5.4.280.0000.04018.87
5.4.270.0070.03318.85
5.4.260.0000.04019.24
5.4.250.0000.05018.84
5.4.240.0000.04019.14
5.4.230.0070.03319.14
5.4.220.0000.04019.14
5.4.210.0070.03318.86
5.4.200.0000.04019.23
5.4.190.0030.04019.14
5.4.180.0030.04018.91
5.4.170.0000.04018.97
5.4.160.0130.06719.13
5.4.150.0030.05019.08
5.4.140.0070.03316.41
5.4.130.0170.05716.41
5.4.120.0030.03716.24
5.4.110.0030.04716.30
5.4.100.0070.07016.30
5.4.90.0070.04016.41
5.4.80.0000.07316.27
5.4.70.0170.06716.39
5.4.60.0030.04316.35
5.4.50.0130.06716.27
5.4.40.0100.07016.27
5.4.30.0100.07316.38
5.4.20.0070.07016.48
5.4.10.0100.03316.44
5.4.00.0030.03715.91
5.3.290.0030.08014.55
5.3.280.0070.03314.64
5.3.270.0070.06714.61
5.3.260.0130.05014.64
5.3.250.0030.05314.60
5.3.240.0030.03714.68
5.3.230.0030.03714.52
5.3.220.0030.03714.57
5.3.210.0100.06714.62
5.3.200.0070.07014.71
5.3.190.0100.07314.63
5.3.180.0070.04014.62
5.3.170.0000.04714.60
5.3.160.0070.08314.57
5.3.150.0130.06714.58
5.3.140.0130.07014.47
5.3.130.0100.04014.58
5.3.120.0070.08314.71
5.3.110.0030.07714.63
5.3.100.0000.04314.07
5.3.90.0000.04014.05
5.3.80.0000.04014.03
5.3.70.0000.08314.16
5.3.60.0100.06714.05
5.3.50.0100.08013.86
5.3.40.0030.07013.84
5.3.30.0000.04013.91
5.3.20.0070.06313.64
5.3.10.0100.03013.66
5.3.00.0170.06313.68
5.2.170.0070.05311.21
5.2.160.0030.06311.15
5.2.150.0030.06711.20
5.2.140.0100.05311.29
5.2.130.0030.04711.02
5.2.120.0070.04011.25
5.2.110.0030.05011.09
5.2.100.0030.03711.06
5.2.90.0000.06311.05
5.2.80.0070.02711.09
5.2.70.0070.05711.02
5.2.60.0130.04711.12
5.2.50.0030.05311.01
5.2.40.0030.06011.14
5.2.30.0000.04010.97
5.2.20.0000.06710.97
5.2.10.0070.03311.01
5.2.00.0000.03310.79
5.1.60.0030.0509.90
5.1.50.0100.0209.98
5.1.40.0100.03010.13
5.1.30.0030.05710.39
5.1.20.0030.05310.39
5.1.10.0100.04310.20
5.1.00.0070.05310.06
5.0.50.0030.0338.85
5.0.40.0030.0378.85
5.0.30.0030.0338.85
5.0.20.0030.0408.85
5.0.10.0070.0378.85
5.0.00.0030.0678.85
4.4.90.0070.0308.85
4.4.80.0030.0338.85
4.4.70.0100.0308.85
4.4.60.0000.0238.85
4.4.50.0070.0338.85
4.4.40.0030.0278.85
4.4.30.0000.0378.85
4.4.20.0000.0378.85
4.4.10.0030.0378.85
4.4.00.0130.0438.85
4.3.110.0000.0208.85
4.3.100.0070.0138.85
4.3.90.0000.0208.85
4.3.80.0000.0308.85
4.3.70.0030.0338.85
4.3.60.0030.0308.85
4.3.50.0030.0238.85
4.3.40.0000.0308.85
4.3.30.0000.0178.85
4.3.20.0000.0178.85
4.3.10.0000.0178.85
4.3.00.0000.0138.85

preferences:
41.71 ms | 400 KiB | 5 Q