3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = array ( 0 => array( "location" => "Breakwater", "bsid" => "105c" ), 1 => array( "location" => "Breakwater", "bsid" => "105c" ), 2 => array( "location" => "Breakwater", "bsid" => "105c" ), 3 => array( "location" => "Whateverelse", "bsid" => "105c" ) ); $count = array(); foreach($arrays as $simple) { $count []= $simple['location']; } var_dump($count);

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.0040.01118.39
8.3.50.0150.00721.21
8.3.40.0210.00018.79
8.3.30.0070.00720.33
8.3.20.0040.00420.36
8.3.10.0060.00321.98
8.3.00.0080.00022.49
8.2.180.0100.00718.41
8.2.170.0160.00319.09
8.2.160.0120.00922.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00319.36
8.2.110.0060.00322.10
8.2.100.0030.01017.84
8.2.90.0060.00319.05
8.2.80.0040.00419.21
8.2.70.0000.00817.48
8.2.60.0070.00017.93
8.2.50.0000.01118.07
8.2.40.0000.00818.34
8.2.30.0040.00418.14
8.2.20.0000.00717.73
8.2.10.0040.00417.73
8.2.00.0100.00017.63
8.1.280.0110.00325.92
8.1.270.0070.00724.66
8.1.260.0040.01126.35
8.1.250.0000.00728.09
8.1.240.0100.00023.88
8.1.230.0070.00319.06
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0050.00317.53
8.1.180.0000.01018.10
8.1.170.0030.00518.62
8.1.160.0030.00618.93
8.1.150.0070.00018.64
8.1.140.0080.00017.49
8.1.130.0000.00717.83
8.1.120.0000.00717.34
8.1.110.0040.00417.38
8.1.100.0040.00417.51
8.1.90.0000.00817.43
8.1.80.0040.00417.40
8.1.70.0030.00317.33
8.1.60.0000.00817.55
8.1.50.0000.00717.55
8.1.40.0030.00517.41
8.1.30.0000.00717.61
8.1.20.0050.00317.71
8.1.10.0040.00417.53
8.1.00.0030.00617.32
8.0.300.0070.00018.77
8.0.290.0050.00217.18
8.0.280.0040.00418.39
8.0.270.0000.00817.28
8.0.260.0030.00316.86
8.0.250.0030.00317.02
8.0.240.0000.00716.90
8.0.230.0030.00316.79
8.0.220.0030.00316.73
8.0.210.0000.00716.75
8.0.200.0000.00616.83
8.0.190.0000.00716.80
8.0.180.0070.00016.82
8.0.170.0050.00316.93
8.0.160.0000.00816.92
8.0.150.0050.00316.78
8.0.140.0030.00516.75
8.0.130.0050.00013.29
8.0.120.0000.00816.80
8.0.110.0080.00016.81
8.0.100.0000.00816.79
8.0.90.0040.00416.79
8.0.80.0080.00816.75
8.0.70.0000.00716.84
8.0.60.0060.00316.91
8.0.50.0000.00716.76
8.0.30.0080.01117.04
8.0.20.0170.00417.40
8.0.10.0040.00416.89
8.0.00.0110.00916.69
7.4.330.0030.00315.02
7.4.320.0060.00016.54
7.4.300.0030.00316.48
7.4.290.0070.00016.57
7.4.280.0000.00716.49
7.4.270.0050.00316.58
7.4.260.0060.00316.57
7.4.250.0000.00816.47
7.4.240.0050.00316.45
7.4.230.0000.00716.57
7.4.220.0150.00416.53
7.4.210.0050.01116.48
7.4.200.0000.00716.38
7.4.190.0040.00416.75
7.4.160.0070.01116.45
7.4.150.0180.00717.40
7.4.140.0100.00717.86
7.4.130.0090.00816.42
7.4.120.0070.01316.34
7.4.110.0090.00916.51
7.4.100.0120.00616.48
7.4.90.0120.00616.52
7.4.80.0070.01019.39
7.4.70.0030.01316.49
7.4.60.0090.00916.43
7.4.50.0040.00416.51
7.4.40.0030.01022.77
7.4.30.0100.00716.64
7.4.00.0090.00414.86
7.3.330.0000.00513.18
7.3.320.0030.00313.21
7.3.310.0060.00016.26
7.3.300.0030.00316.22
7.3.290.0000.02016.28
7.3.280.0050.01016.27
7.3.270.0030.01417.40
7.3.260.0090.00916.34
7.3.250.0100.00716.44
7.3.240.0190.00316.54
7.3.230.0170.00016.46
7.3.210.0040.01416.33
7.3.200.0040.01219.39
7.3.190.0150.00816.48
7.3.180.0090.00616.52
7.3.170.0060.01016.40
7.3.160.0110.00716.41
7.3.120.0070.00714.62
7.3.00.0070.00616.66
7.2.330.0030.01616.73
7.2.320.0100.00716.54
7.2.310.0140.00316.55
7.2.300.0110.00616.52
7.2.290.0070.00716.53
7.2.130.0040.00816.84
7.2.120.0070.00717.00
7.2.110.0080.00416.70
7.2.100.0090.00316.98
7.2.90.0090.00317.03
7.2.80.0040.00816.79
7.2.70.0030.00916.96
7.2.60.0000.01117.13
7.2.50.0040.00716.99
7.2.40.0080.00417.08
7.2.30.0000.01116.95
7.2.20.0030.01017.06
7.2.10.0030.00916.78
7.2.00.0020.01218.24
7.1.250.0030.00715.60
7.1.240.0080.00315.57
7.1.230.0040.00815.55
7.1.220.0030.00615.93
7.1.210.0080.00015.64
7.1.200.0030.00615.71
7.1.190.0070.00715.78
7.1.180.0030.00715.75
7.1.170.0040.00715.88
7.1.160.0070.00315.99
7.1.150.0000.01115.73
7.1.140.0070.00415.80
7.1.130.0000.00915.49
7.1.120.0070.00615.80
7.1.110.0040.00815.68
7.1.100.0000.01216.95
7.1.90.0040.00716.03
7.1.80.0090.00015.97
7.1.70.0040.00716.58
7.1.60.0080.01017.54
7.1.50.0050.00816.37
7.1.40.0060.00315.85
7.1.30.0090.00315.91
7.1.20.0000.00915.74
7.1.10.0100.00315.73
7.1.00.0000.02619.08
7.0.330.0000.00915.57
7.0.320.0030.01215.23
7.0.310.0040.00715.31
7.0.300.0060.00615.36
7.0.290.0000.01615.52
7.0.280.0030.00715.38
7.0.270.0080.00315.44
7.0.260.0080.00015.49
7.0.250.0030.00915.53
7.0.240.0030.00715.33
7.0.230.0090.00015.31
7.0.220.0100.00015.63
7.0.210.0100.00615.52
7.0.200.0530.00815.08
7.0.190.0070.00315.12
7.0.180.0040.00815.48
7.0.170.0040.00815.54
7.0.160.0070.00315.21
7.0.150.0000.00915.48
7.0.140.0070.03718.60
7.0.130.0070.00315.64
7.0.120.0040.00715.45
7.0.110.0070.01115.43
7.0.100.0070.04417.72
7.0.90.0160.03717.74
7.0.80.0150.02317.73
7.0.70.0120.04717.56
7.0.60.0060.02817.46
7.0.50.0070.02017.90
7.0.40.0080.02516.71
7.0.30.0050.04516.77
7.0.20.0090.03916.63
7.0.10.0060.04016.81
7.0.00.0080.04316.77
5.6.380.0110.00014.56
5.6.370.0000.01014.78
5.6.360.0000.01114.34
5.6.350.0030.00714.66
5.6.340.0030.00714.36
5.6.330.0060.00614.45
5.6.320.0070.00414.61
5.6.310.0030.00814.24
5.6.300.0070.00314.05
5.6.290.0040.00714.15
5.6.280.0050.03617.53
5.6.270.0060.00614.23
5.6.260.0090.00614.39
5.6.250.0080.03317.59
5.6.240.0100.03317.55
5.6.230.0030.03517.57
5.6.220.0060.04017.23
5.6.210.0030.04317.43
5.6.200.0020.02717.66
5.6.190.0080.02017.68
5.6.180.0070.04417.59
5.6.170.0070.02217.81
5.6.160.0070.03117.82
5.6.150.0050.04117.71
5.6.140.0080.02617.61
5.6.130.0030.02817.58
5.6.120.0070.04217.73
5.6.110.0060.02617.58
5.6.100.0100.02917.65
5.6.90.0080.03017.66
5.6.80.0030.02717.25
5.6.70.0070.04417.37
5.6.60.0100.03417.29
5.6.50.0090.02217.34
5.6.40.0080.02717.43
5.6.30.0050.04017.33
5.6.20.0100.02717.27
5.6.10.0110.04117.30
5.6.00.0100.02317.42
5.5.380.0080.04215.65
5.5.370.0110.03815.72
5.5.360.0030.02615.70
5.5.350.0100.03515.76
5.5.340.0060.02916.14
5.5.330.0070.03215.91
5.5.320.0000.02415.90
5.5.310.0070.03615.95
5.5.300.0060.02516.00
5.5.290.0050.03316.13
5.5.280.0030.03115.87
5.5.270.0070.03816.02
5.5.260.0110.02116.00
5.5.250.0070.03215.80
5.5.240.0050.02115.67
5.5.230.0070.02915.61
5.5.220.0130.02015.67
5.5.210.0080.04015.66
5.5.200.0050.02215.60
5.5.190.0050.04515.71
5.5.180.0040.04315.77
5.5.170.0090.00311.11
5.5.160.0080.03515.65
5.5.150.0050.04215.60
5.5.140.0030.02515.50
5.5.130.0060.02415.56
5.5.120.0040.03915.59
5.5.110.0110.03315.52
5.5.100.0030.04415.56
5.5.90.0080.03015.60
5.5.80.0080.04515.66
5.5.70.0070.02915.64
5.5.60.0090.01815.43
5.5.50.0090.02915.54
5.5.40.0070.02615.46
5.5.30.0070.03815.60
5.5.20.0070.04015.45
5.5.10.0060.04315.46
5.5.00.0100.03515.45
5.4.450.0020.04215.24
5.4.440.0070.02415.18
5.4.430.0070.04015.23
5.4.420.0110.02515.18
5.4.410.0080.03815.10
5.4.400.0050.02314.92
5.4.390.0060.04115.02
5.4.380.0050.04115.04
5.4.370.0090.04115.06
5.4.360.0060.02615.11
5.4.350.0030.03914.98
5.4.340.0050.04015.02
5.4.330.0000.01210.90
5.4.320.0030.02514.98
5.4.310.0070.03115.02
5.4.300.0050.04014.99
5.4.290.0080.03714.98
5.4.280.0090.03915.02
5.4.270.0050.02715.00
5.4.260.0120.02014.98
5.4.250.0040.04214.96
5.4.240.0060.04015.01
5.4.230.0070.03914.98
5.4.220.0160.04715.02
5.4.210.0050.03014.97
5.4.200.0120.03715.00
5.4.190.0080.03915.01
5.4.180.0020.04615.01
5.4.170.0130.03614.98
5.4.160.0110.02115.06
5.4.150.0040.04114.92
5.4.140.0050.04013.71
5.4.130.0050.03813.61
5.4.120.0040.02513.51
5.4.110.0080.02613.61
5.4.100.0040.04413.64
5.4.90.0030.04313.69
5.4.80.0110.03413.55
5.4.70.0070.02213.54
5.4.60.0080.03013.73
5.4.50.0080.02413.54
5.4.40.0030.04313.70
5.4.30.0070.01813.59
5.4.20.0100.01613.65
5.4.10.0050.02413.65
5.4.00.0070.03713.44
5.3.290.0040.02512.71
5.3.280.0080.02112.71
5.3.270.0110.03812.76
5.3.260.0030.02612.75
5.3.250.0070.03012.68
5.3.240.0110.03712.71
5.3.230.0030.04012.74
5.3.220.0070.02712.65
5.3.210.0100.03312.71
5.3.200.0070.03912.72
5.3.190.0050.03512.66
5.3.180.0080.04012.72
5.3.170.0000.04312.69
5.3.160.0080.02712.65
5.3.150.0100.03812.72
5.3.140.0040.02112.66
5.3.130.0050.02212.65
5.3.120.0040.04412.71
5.3.110.0080.04112.71
5.3.100.0050.03012.44
5.3.90.0080.01812.39
5.3.80.0020.04512.34
5.3.70.0100.03312.39
5.3.60.0080.03612.42
5.3.50.0120.03712.42
5.3.40.0120.02612.41
5.3.30.0060.02112.38
5.3.20.0020.03912.23
5.3.10.0130.01812.25
5.3.00.0180.03212.25
5.2.170.0020.03811.05
5.2.160.0060.02811.04
5.2.150.0050.02811.00
5.2.140.0030.03410.94
5.2.130.0030.03110.92
5.2.120.0050.02810.93
5.2.110.0060.01711.00
5.2.100.0090.03510.90
5.2.90.0110.03011.03
5.2.80.0070.03010.92
5.2.70.0120.02210.99
5.2.60.0060.03411.01
5.2.50.0080.02710.95
5.2.40.0050.03310.94
5.2.30.0070.03110.91
5.2.20.0060.02010.82
5.2.10.0040.01710.83
5.2.00.0030.03110.76
5.1.60.0010.03310.46
5.1.50.0080.03210.44
5.1.40.0080.01810.46
5.1.30.0070.02910.63
5.1.20.0080.01710.63
5.1.10.0070.03010.47
5.1.00.0100.02210.50
5.0.50.0040.0219.63
5.0.40.0000.0229.64
5.0.30.0050.0369.59
5.0.20.0020.0299.59
5.0.10.0040.0179.59
5.0.00.0050.0289.59
4.4.90.0030.0189.59
4.4.80.0020.0139.59
4.4.70.0060.0119.59
4.4.60.0020.0109.59
4.4.50.0010.0119.59
4.4.40.0040.0259.59
4.4.30.0100.0139.59
4.4.20.0070.0199.59
4.4.10.0030.0219.59
4.4.00.0090.0259.59
4.3.110.0040.0159.59
4.3.100.0030.0189.59
4.3.90.0030.0209.59
4.3.80.0050.0259.59
4.3.70.0000.0189.59
4.3.60.0080.0139.59
4.3.50.0070.0159.59
4.3.40.0080.0119.59
4.3.30.0020.0219.59
4.3.20.0020.0219.59
4.3.10.0070.0089.59
4.3.00.0040.0189.59

preferences:
49.65 ms | 401 KiB | 5 Q