3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(array("1" => "a", "2" => "hello a1", "3" => "ab", "4" => "ab1", "5" => "hello ab1"), array("1" => "a", "2" => "hello a1", "3" => "ab", "4" => "ab2", "5" => "hello ab2"), array("1" => "a", "2" => "hello a1", "3" => "ac", "4" => "ac2", "5" => "hello ac2"), array("1" => "b", "2" => "hello b1", "3" => "bb", "4" => "bb1", "5" => "hello bb1"), array("1" => "b", "2" => "hello b1", "3" => "bb", "4" => "bb2", "5" => "hello bb2"), array("1" => "b", "2" => "hello b1", "3" => "bc", "4" => "bc3", "5" => "hello bc3"), ); foreach ($array as $key) { foreach ($key as $value) { echo $value; echo "<br>"; } }

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.60.0060.01518.31
8.3.50.0070.00716.25
8.3.40.0060.00918.59
8.3.30.0070.00718.44
8.3.20.0040.00420.34
8.3.10.0070.00321.94
8.3.00.0000.00819.67
8.2.180.0170.00716.50
8.2.170.0040.01222.96
8.2.160.0100.00319.08
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.21
8.2.120.0050.00326.35
8.2.110.0060.00322.11
8.2.100.0080.00417.78
8.2.90.0040.00417.84
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0050.00220.64
8.2.30.0040.00419.16
8.2.20.0040.00417.94
8.2.10.0040.00418.07
8.2.00.0030.00618.12
8.1.280.0090.00625.92
8.1.270.0000.00823.83
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0070.01022.19
8.1.230.0100.00320.81
8.1.220.0050.00317.74
8.1.210.0000.00919.02
8.1.200.0080.00417.36
8.1.190.0000.00816.88
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0070.00019.02
8.1.150.0040.00418.93
8.1.140.0000.00719.49
8.1.130.0080.00018.94
8.1.120.0050.00217.50
8.1.110.0040.00417.42
8.1.100.0050.00317.36
8.1.90.0040.00417.52
8.1.80.0000.00817.45
8.1.70.0040.00417.47
8.1.60.0030.00617.54
8.1.50.0040.00417.38
8.1.40.0050.00317.37
8.1.30.0000.00817.61
8.1.20.0000.00817.66
8.1.10.0000.00817.50
8.1.00.0000.00917.46
8.0.300.0050.00220.03
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0040.00417.26
8.0.260.0030.00316.88
8.0.250.0030.00316.94
8.0.240.0030.00617.04
8.0.230.0050.00216.95
8.0.220.0070.00016.84
8.0.210.0030.00316.81
8.0.200.0000.00616.87
8.0.190.0030.00616.84
8.0.180.0030.00516.81
8.0.170.0000.00816.87
8.0.160.0030.00317.02
8.0.150.0050.00316.89
8.0.140.0000.00816.81
8.0.130.0030.00313.30
8.0.120.0000.00816.86
8.0.110.0050.00216.95
8.0.100.0000.00716.84
8.0.90.0070.00016.92
8.0.80.0070.01016.91
8.0.70.0000.00816.67
8.0.60.0080.00016.95
8.0.50.0040.00416.85
8.0.30.0080.00917.09
8.0.20.0110.01017.40
8.0.10.0000.00717.05
8.0.00.0150.00316.58
7.4.330.0050.00015.55
7.4.320.0000.00616.63
7.4.300.0030.00316.52
7.4.290.0090.00016.44
7.4.280.0040.00316.64
7.4.270.0000.00816.61
7.4.260.0040.00416.50
7.4.250.0030.00516.48
7.4.240.0000.00716.61
7.4.230.0000.00716.70
7.4.220.0030.01616.57
7.4.210.0100.01016.55
7.4.200.0070.00016.63
7.4.160.0060.00916.45
7.4.150.0110.00817.40
7.4.140.0130.00817.86
7.4.130.0120.01516.33
7.4.120.0120.01116.55
7.4.110.0120.00616.50
7.4.100.0070.01416.51
7.4.90.0030.01416.45
7.4.80.0000.01619.39
7.4.70.0100.01316.43
7.4.60.0070.00716.45
7.4.50.0070.00416.44
7.4.40.0070.01016.62
7.4.30.0100.01416.57
7.4.00.0070.01014.73
7.3.330.0050.00013.19
7.3.320.0030.00313.01
7.3.310.0030.00316.10
7.3.300.0030.00316.27
7.3.290.0110.00716.27
7.3.280.0070.01016.28
7.3.270.0030.01617.40
7.3.260.0090.00816.55
7.3.250.0090.00816.39
7.3.240.0060.01616.23
7.3.230.0100.00716.40
7.3.210.0080.00816.27
7.3.200.0110.00516.29
7.3.190.0040.01216.47
7.3.180.0030.01216.21
7.3.170.0100.00616.27
7.3.160.0000.01716.48
7.3.120.0060.00814.54
7.3.110.0090.00714.57
7.3.100.0090.00914.84
7.3.90.0100.00214.76
7.3.80.0080.00314.65
7.3.70.0040.00714.86
7.3.60.0060.00314.75
7.3.50.0050.00914.73
7.3.40.0020.01014.73
7.3.30.0060.00914.80
7.3.20.0020.01216.57
7.3.10.0060.00816.44
7.3.00.0040.01016.63
7.2.330.0190.00016.68
7.2.320.0120.00616.58
7.2.310.0070.01316.59
7.2.300.0090.00916.58
7.2.290.0160.00016.53
7.2.250.0090.00914.67
7.2.240.0070.00815.08
7.2.230.0030.01315.04
7.2.220.0060.00615.12
7.2.210.0050.00815.06
7.2.200.0030.00915.03
7.2.190.0030.00714.88
7.2.180.0090.00514.91
7.2.170.0070.00614.84
7.2.160.0060.01014.61
7.2.150.0100.00016.67
7.2.140.0110.00316.90
7.2.130.0060.01216.61
7.2.120.0070.00716.86
7.2.110.0090.00616.41
7.2.100.0040.01116.64
7.2.90.0100.00316.88
7.2.80.0080.00816.98
7.2.70.0030.01016.73
7.2.60.0110.00716.95
7.2.50.0030.01016.94
7.2.40.0100.00616.96
7.2.30.0000.01416.91
7.2.20.0050.00516.88
7.2.10.0040.00816.63
7.2.00.0030.01018.14
7.1.330.0040.00815.72
7.1.320.0010.01315.70
7.1.310.0060.00815.98
7.1.300.0050.01115.73
7.1.290.0060.00715.61
7.1.280.0030.00615.78
7.1.270.0030.01015.66
7.1.260.0060.00815.89
7.1.250.0060.00915.72
7.1.200.0060.00315.64
7.1.100.0030.01318.09
7.1.70.0070.01117.28
7.1.60.0240.01234.99
7.1.50.0170.02034.76
7.1.40.0120.02034.42
7.1.30.0290.01134.48
7.1.20.0220.01734.47
7.1.10.0060.01116.48
7.1.00.0000.01716.86
7.0.200.0060.01216.88
7.0.190.0060.01216.67
7.0.180.0090.00916.45
7.0.170.0070.01216.40
7.0.160.0030.01516.40
7.0.150.0030.01316.12
7.0.140.0070.01016.22
7.0.130.0030.01416.73
7.0.120.0040.00716.56
7.0.110.0030.01416.20
7.0.100.0060.01016.22
7.0.90.0040.01116.14
7.0.80.0030.01416.39
7.0.70.0060.01216.25
7.0.60.0100.00915.84
7.0.50.0030.01116.25
7.0.40.0070.01016.23
7.0.30.0060.01116.42
7.0.20.0100.00716.53
7.0.10.0070.01016.54
7.0.00.0130.00316.32

preferences:
48.11 ms | 401 KiB | 5 Q