3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill(0, 200, 0); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { array_merge($array); } var_dump(microtime(true) - $time); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { array_values($array); } var_dump(microtime(true) - $time);

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.00.0070.10314.93
7.3.120.0100.10114.73
7.3.110.0070.10315.13
7.3.100.0070.05714.68
7.3.90.0100.05214.76
7.3.80.0030.05714.57
7.3.70.0070.05214.95
7.3.60.0100.05314.48
7.3.50.0100.06114.56
7.3.40.0000.08214.90
7.3.30.0060.05815.00
7.3.20.0070.05216.32
7.3.10.0070.05616.41
7.3.00.0070.05316.63
7.2.250.0070.10515.15
7.2.240.0100.10415.23
7.2.230.0160.05515.07
7.2.220.0130.04815.24
7.2.210.0070.05615.03
7.2.200.0030.05914.92
7.2.190.0070.05614.99
7.2.180.0030.06115.14
7.2.170.0030.05915.08
7.2.00.0030.06519.56
7.1.330.0070.10916.05
7.1.320.0030.10615.79
7.1.310.0100.10316.10
7.1.300.0070.12515.63
7.1.290.0030.10915.96
7.1.280.0030.11215.82
7.1.270.0100.11515.69
7.1.260.0070.11915.86
7.1.70.0000.11217.09
7.1.60.0030.12617.37
7.1.50.0030.12516.96
7.1.40.0030.10916.63
7.1.30.0070.09916.66
7.1.20.0070.11316.69
7.1.10.0070.13616.62
7.1.00.0000.12716.78
7.0.200.0400.23416.60
7.0.190.0030.21116.72
7.0.180.0000.19116.23
7.0.170.0000.25316.34
7.0.160.0070.24316.32
7.0.150.0030.20916.44
7.0.140.0030.19816.42
7.0.130.0000.21216.75
7.0.120.0170.21416.41
7.0.110.0030.20916.46
7.0.100.0000.21816.46
7.0.90.0000.19016.39
7.0.80.0000.18516.39
7.0.70.0000.23016.47
7.0.60.0000.24216.35
7.0.50.0030.20316.30
7.0.40.0030.23914.73
7.0.30.0000.21014.71
7.0.20.0000.21714.43
7.0.10.0030.19214.71
7.0.00.0600.20114.41
5.6.300.0031.15420.78
5.6.290.0071.25320.79
5.6.280.0101.17220.80
5.6.270.0101.17721.00
5.6.260.0001.12421.07
5.6.250.0071.20121.00
5.6.240.0001.13720.93
5.6.230.0001.16720.95
5.6.220.0031.14920.93
5.6.210.0031.21721.05
5.6.200.0031.11720.80
5.6.190.0031.20420.96
5.6.180.0071.17420.95
5.6.170.0031.11121.02
5.6.160.0071.30520.93
5.6.150.0071.22021.02
5.6.140.0031.20820.78
5.6.130.3361.20420.93
5.6.120.0031.13520.82
5.6.110.0071.12520.82
5.6.100.0031.23220.86
5.6.90.0101.16120.92
5.6.80.1531.19520.19
5.6.70.0001.19120.38
5.6.60.0031.17020.19
5.6.50.0031.27020.09
5.6.40.0001.17720.18
5.6.30.0101.22120.18
5.6.20.0001.10920.11
5.6.10.0071.10720.18
5.6.00.0071.14220.16
5.5.380.0131.21417.44
5.5.370.0001.15117.48
5.5.360.0031.10317.47
5.5.350.0031.24317.47
5.5.340.0031.24318.07
5.5.330.0071.32418.06
5.5.320.0031.13018.11
5.5.310.0071.23218.00
5.5.300.0031.24417.89
5.5.290.0071.21618.06
5.5.280.0101.19617.97
5.5.270.0071.11318.11
5.5.260.0071.14718.02
5.5.250.0071.22117.81
5.5.240.0031.19117.09
5.5.230.0671.20517.12
5.5.220.0071.14517.39
5.5.210.0001.16117.32
5.5.200.0031.09517.04
5.5.190.1671.17417.30
5.5.180.0071.19817.38
5.5.160.0031.33817.28
5.5.150.0071.17917.35
5.5.140.0031.27317.46
5.5.130.0071.11017.09
5.5.120.0001.12017.47
5.5.110.0031.11417.32
5.5.100.0101.18217.23
5.5.90.0071.16617.27
5.5.80.0001.20516.95
5.5.70.0071.23817.23
5.5.60.0131.12217.27
5.5.50.0071.60617.18
5.5.40.0031.60717.31
5.5.30.0031.60417.30
5.5.20.0031.54717.25
5.5.10.0071.68517.27
5.5.00.0031.57217.20
5.4.450.0101.59319.25
5.4.440.0071.56619.19
5.4.430.0031.60419.37
5.4.420.0031.63219.37
5.4.410.0031.69119.24
5.4.400.0101.55118.98
5.4.390.0001.62119.13
5.4.380.0101.66819.05
5.4.370.0031.63219.09
5.4.360.0101.60318.97
5.4.350.0031.59019.14
5.4.340.0001.67618.97
5.4.320.0071.67919.00
5.4.310.0031.69819.10
5.4.300.0031.61418.85
5.4.290.0071.55019.16
5.4.280.0071.66518.88
5.4.270.0071.62318.99
5.4.260.0071.58319.04
5.4.250.0131.64919.04
5.4.240.0031.60619.04
5.4.230.0071.64118.96
5.4.220.0101.67319.11
5.4.210.0031.60218.96
5.4.200.0071.66218.90
5.4.190.0031.67718.84
5.4.180.0031.63118.96
5.4.170.0071.61218.96
5.4.160.0031.54518.89
5.4.150.0071.62819.00
5.4.140.0071.69016.55
5.4.130.0071.69916.43
5.4.120.0031.84016.53
5.4.110.0071.74816.65
5.4.100.0001.77716.55
5.4.90.0031.68916.68
5.4.80.0971.74016.70
5.4.70.0031.65116.63
5.4.60.0031.67116.66
5.4.50.0001.64116.38
5.4.40.0001.71516.65
5.4.30.0101.60216.59
5.4.20.0071.67316.65
5.4.10.0101.76816.38
5.4.00.0331.75615.88

preferences:
37.38 ms | 401 KiB | 5 Q