3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = Array ( Array ( 'user_id' => 21, 'email' => 'momod@modara.com', 'brand' => Array ('GOFUEL_W','GOFUEL_USD_W')), Array ( 'user_id' => 22, 'email' => 'hemisphere@modara.com', 'brand' => Array ('GOFUEL_W')), Array ( 'user_id' => 23, 'email' => 'madoka@modara.com', 'brand' => Array ('GOFUEL_W','GOFUEL_USD_W','GOFUEL_BGD_W') ) ); foreach ($array as &$element) { if ($element['user_id'] != 22) continue; // skip this $element['brand'][] = "GO_FUEL_SGD_W"; break; // we are finished, don't need the elements after this one } print_r($myarray);

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.0090.00618.55
8.3.50.0080.01221.08
8.3.40.0120.00318.84
8.3.30.0130.00720.04
8.3.20.0050.00320.18
8.3.10.0050.00320.96
8.3.00.0040.00423.54
8.2.180.0070.00716.75
8.2.170.0130.00322.96
8.2.160.0070.00720.29
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0070.00021.13
8.2.110.0060.00319.27
8.2.100.0040.00717.78
8.2.90.0060.00319.26
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0030.00319.33
8.2.20.0000.00717.78
8.2.10.0030.00617.80
8.2.00.0000.00717.70
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.46
8.1.230.0110.00020.82
8.1.220.0080.00018.77
8.1.210.0050.00319.03
8.1.200.0030.00617.23
8.1.190.0000.00717.52
8.1.180.0090.00318.10
8.1.170.0040.00418.78
8.1.160.0040.00418.89
8.1.150.0000.00718.55
8.1.140.0050.00217.45
8.1.130.0070.00017.79
8.1.120.0040.00417.48
8.1.110.0040.00417.38
8.1.100.0040.00417.48
8.1.90.0000.00717.44
8.1.80.0050.00317.49
8.1.70.0070.00017.42
8.1.60.0000.00817.48
8.1.50.0050.00317.45
8.1.40.0050.00517.51
8.1.30.0060.00317.66
8.1.20.0000.00817.68
8.1.10.0060.00317.47
8.1.00.0040.00417.42
8.0.300.0000.00719.89
8.0.290.0040.00416.93
8.0.280.0070.00018.50
8.0.270.0070.00017.27
8.0.260.0030.00316.85
8.0.250.0040.00417.02
8.0.240.0080.00016.98
8.0.230.0030.00316.91
8.0.220.0030.00616.83
8.0.210.0070.00016.87
8.0.200.0030.00316.90
8.0.190.0030.00516.90
8.0.180.0050.00216.98
8.0.170.0050.00316.93
8.0.160.0080.00016.93
8.0.150.0000.00716.91
8.0.140.0040.00416.82
8.0.130.0030.00313.34
8.0.120.0000.00816.79
8.0.110.0030.00516.97
8.0.100.0050.00216.99
8.0.90.0040.00417.07
8.0.80.0130.00616.84
8.0.70.0000.00817.07
8.0.60.0040.00417.00
8.0.50.0000.00717.02
8.0.30.0130.00617.16
8.0.20.0110.00717.40
8.0.10.0070.00016.90
8.0.00.0050.01116.68
7.4.330.0040.00314.92
7.4.320.0060.00016.48
7.4.300.0000.00616.64
7.4.290.0000.00716.61
7.4.280.0030.00316.48
7.4.270.0030.00316.54
7.4.260.0000.00513.29
7.4.250.0040.00416.42
7.4.240.0000.00716.57
7.4.230.0000.00716.55
7.4.220.0130.00616.69
7.4.210.0080.00816.57
7.4.200.0000.00716.61
7.4.190.0070.00016.78
7.4.160.0120.01216.48
7.4.150.0130.00317.40
7.4.140.0030.01417.86
7.4.130.0050.01216.53
7.4.120.0110.00616.61
7.4.110.0070.01516.52
7.4.100.0130.00716.45
7.4.90.0120.00616.53
7.4.80.0160.00819.39
7.4.70.0150.00016.68
7.4.60.0030.01316.46
7.4.50.0040.00416.51
7.4.40.0040.01122.77
7.4.30.0100.00716.52
7.4.00.0100.00715.01
7.3.330.0020.00212.97
7.3.320.0000.00613.18
7.3.310.0030.00316.22
7.3.300.0040.00416.16
7.3.290.0070.00716.22
7.3.280.0070.01016.32
7.3.270.0110.00717.40
7.3.260.0100.01018.24
7.3.250.0070.01016.45
7.3.240.0060.01316.21
7.3.230.0100.00716.49
7.3.210.0100.00716.40
7.3.200.0030.01419.39
7.3.190.0060.01416.37
7.3.180.0070.01016.30
7.3.170.0060.01416.40
7.3.160.0140.00316.58
7.3.120.0070.00714.95
7.3.00.0060.00616.79
7.2.330.0070.01816.36
7.2.320.0130.01016.68
7.2.310.0120.00616.54
7.2.300.0090.00916.51
7.2.290.0080.00916.39
7.2.130.0100.00316.83
7.2.120.0040.01117.07
7.2.110.0040.00716.80
7.2.100.0040.01116.66
7.2.90.0050.00516.44
7.2.80.0120.00416.61
7.2.70.0110.00616.81
7.2.60.0060.00616.93
7.2.50.0090.00616.88
7.2.40.0070.00317.00
7.2.30.0030.00616.85
7.2.20.0090.00316.71
7.2.10.0090.00616.77
7.2.00.0080.00416.86
7.1.250.0100.00615.72
7.1.240.0030.00615.65
7.1.230.0080.00415.80
7.1.220.0150.00015.55
7.1.210.0060.00915.88
7.1.200.0040.00715.80
7.1.190.0070.00715.68
7.1.180.0030.01015.45
7.1.170.0070.00315.96
7.1.160.0030.00515.88
7.1.150.0120.00015.76
7.1.140.0030.01015.93
7.1.130.0070.00315.92
7.1.120.0140.00015.93
7.1.110.0060.00315.88
7.1.100.0030.00615.54
7.1.90.0000.00915.93
7.1.80.0070.00715.55
7.1.70.0020.00616.49
7.1.60.0080.00917.46
7.1.50.0030.01216.23
7.1.40.0030.00715.56
7.1.30.0100.00315.98
7.1.20.0070.00315.77
7.1.10.0070.00715.79
7.1.00.0020.02319.02
7.0.330.0060.00315.51
7.0.320.0040.00815.22
7.0.310.0060.00515.37
7.0.300.0090.00315.23
7.0.290.0030.01215.07
7.0.280.0040.00715.32
7.0.270.0120.00315.10
7.0.260.0070.01015.23
7.0.250.0110.00415.07
7.0.240.0000.01215.06
7.0.230.0110.00615.30
7.0.220.0030.01015.26
7.0.210.0030.00615.26
7.0.200.0020.00716.01
7.0.190.0060.00615.00
7.0.180.0070.00315.05
7.0.170.0040.01215.33
7.0.160.0060.00615.22
7.0.150.0040.00715.18
7.0.140.0020.04118.52
7.0.130.0040.01115.31
7.0.120.0060.00615.43
7.0.110.0030.00615.25
7.0.100.0070.04517.73
7.0.90.0060.02917.44
7.0.80.0040.02917.65
7.0.70.0050.04217.55
7.0.60.0070.04017.65
7.0.50.0030.04517.77
7.0.40.0050.02616.64
7.0.30.0150.04316.68
7.0.20.0060.04216.54
7.0.10.0080.02616.67
7.0.00.0080.04616.78
5.6.380.0060.00613.84
5.6.370.0000.01314.28
5.6.360.0030.00814.24
5.6.350.0100.00314.36
5.6.340.0000.01314.27
5.6.330.0070.00714.13
5.6.320.0030.00614.09
5.6.310.0030.00614.26
5.6.300.0060.00614.30
5.6.290.0040.00814.49
5.6.280.0060.03817.71
5.6.270.0040.00714.09
5.6.260.0060.00614.22
5.6.250.0080.04217.50
5.6.240.0120.04017.44
5.6.230.0070.03517.45
5.6.220.0090.03917.44
5.6.210.0140.02317.06
5.6.200.0180.03717.64
5.6.190.0100.04317.40
5.6.180.0070.02717.45
5.6.170.0170.03217.58
5.6.160.0070.04217.45
5.6.150.0070.03817.42
5.6.140.0150.03317.45
5.6.130.0080.04417.58
5.6.120.0070.04017.50
5.6.110.0120.03917.58
5.6.100.0080.04117.54
5.6.90.0030.04917.62
5.6.80.0070.04517.17
5.6.70.0150.04017.13
5.6.60.0110.03817.20
5.6.50.0050.04517.31
5.6.40.0020.03817.26
5.6.30.0030.03517.24
5.6.20.0080.04217.29
5.6.10.0020.04417.25
5.6.00.0100.03717.29
5.5.380.0020.02915.81
5.5.370.0030.04615.71
5.5.360.0050.03015.75
5.5.350.0030.03815.69
5.5.340.0050.02815.82
5.5.330.0070.03215.95
5.5.320.0050.04115.93
5.5.310.0040.04215.92
5.5.300.0090.04015.98
5.5.290.0000.04815.95
5.5.280.0030.04915.93
5.5.270.0070.04415.96
5.5.260.0030.04515.94
5.5.250.0030.04615.83
5.5.240.0070.03715.64
5.5.230.0040.04415.59
5.5.220.0040.04015.65
5.5.210.0100.02715.56
5.5.200.0080.03715.58
5.5.190.0030.02915.60
5.5.180.0090.04315.57
5.5.170.0040.00411.06
5.5.160.0080.02315.56
5.5.150.0100.04015.55
5.5.140.0070.04015.63
5.5.130.0060.03615.55
5.5.120.0050.04515.63
5.5.110.0080.02715.62
5.5.100.0050.03015.54
5.5.90.0090.03815.54
5.5.80.0080.02315.58
5.5.70.0020.04115.57
5.5.60.0030.02815.48
5.5.50.0080.03015.50
5.5.40.0030.04215.48
5.5.30.0020.02915.53
5.5.20.0040.03515.57
5.5.10.0030.04615.52
5.5.00.0120.03015.54
5.4.450.0050.04115.21
5.4.440.0050.04115.24
5.4.430.0030.04315.13
5.4.420.0060.03815.25
5.4.410.0020.02715.07
5.4.400.0120.02815.04
5.4.390.0070.04015.01
5.4.380.0050.03115.08
5.4.370.0090.03714.95
5.4.360.0020.04715.07
5.4.350.0070.04015.04
5.4.340.0090.04015.11
5.4.330.0050.00511.06
5.4.320.0080.03615.11
5.4.310.0050.03315.08
5.4.300.0030.04114.97
5.4.290.0080.03315.00
5.4.280.0050.03714.98
5.4.270.0080.02815.15
5.4.260.0080.02815.05
5.4.250.0020.03615.07
5.4.240.0060.03515.24
5.4.230.0050.02215.09
5.4.220.0030.04215.09
5.4.210.0020.02714.98
5.4.200.0050.03615.08
5.4.190.0070.02015.14
5.4.180.0070.02915.10
5.4.170.0020.04015.11
5.4.160.0090.02315.24
5.4.150.0060.02315.04
5.4.140.0030.02513.71
5.4.130.0070.02713.67
5.4.120.0070.03713.67
5.4.110.0050.02413.82
5.4.100.0030.04013.70
5.4.90.0030.04013.75
5.4.80.0060.03113.69
5.4.70.0080.03513.78
5.4.60.0040.03413.76
5.4.50.0070.03713.69
5.4.40.0070.02213.79
5.4.30.0100.03513.72
5.4.20.0070.03713.71
5.4.10.0050.02413.65
5.4.00.0050.03713.32
5.3.290.0030.03712.85
5.3.280.0100.03312.89
5.3.270.0070.03712.86
5.3.260.0080.03212.88
5.3.250.0030.02712.88
5.3.240.0070.02312.86
5.3.230.0030.04312.87
5.3.220.0020.03912.87
5.3.210.0020.04512.80
5.3.200.0070.03712.83
5.3.190.0030.02312.81
5.3.180.0100.03512.84
5.3.170.0060.04112.82
5.3.160.0050.04012.78
5.3.150.0020.04412.84
5.3.140.0020.04112.83
5.3.130.0050.03212.79
5.3.120.0070.03912.85
5.3.110.0080.02312.76
5.3.100.0030.03712.52
5.3.90.0050.03812.56
5.3.80.0120.03212.55
5.3.70.0060.03612.50
5.3.60.0020.02612.59
5.3.50.0050.03812.49
5.3.40.0050.04112.45
5.3.30.0020.04512.45
5.3.20.0090.03412.43
5.3.10.0030.03112.38
5.3.00.0050.03712.38
5.2.170.0050.02511.10
5.2.160.0010.03311.06
5.2.150.0050.03311.07
5.2.140.0060.02611.14
5.2.130.0030.01811.15
5.2.120.0030.03211.04
5.2.110.0020.03611.02
5.2.100.0080.02811.04
5.2.90.0090.03011.10
5.2.80.0080.02511.11
5.2.70.0070.03111.10
5.2.60.0080.02811.00
5.2.50.0050.03211.05
5.2.40.0060.03011.05
5.2.30.0050.02311.07
5.2.20.0060.02811.07
5.2.10.0070.03310.92
5.2.00.0050.03010.89
5.1.60.0030.01710.57
5.1.50.0070.02610.57
5.1.40.0040.02510.56
5.1.30.0030.03110.65
5.1.20.0040.03010.66
5.1.10.0050.01310.56
5.1.00.0100.01810.60
5.0.50.0080.0199.80
5.0.40.0000.0269.76
5.0.30.0020.0359.56
5.0.20.0050.0229.67
5.0.10.0020.0159.65
5.0.00.0060.0259.55
4.4.90.0070.0159.31
4.4.80.0010.0209.31
4.4.70.0000.0219.31
4.4.60.0000.0209.31
4.4.50.0000.0179.31
4.4.40.0020.0209.31
4.4.30.0000.0229.31
4.4.20.0030.0189.31
4.4.10.0020.0189.31
4.4.00.0000.0279.31
4.3.110.0030.0179.31
4.3.100.0020.0119.31
4.3.90.0020.0209.31
4.3.80.0020.0279.31
4.3.70.0000.0189.31
4.3.60.0020.0199.31
4.3.50.0000.0209.31
4.3.40.0020.0259.31
4.3.30.0040.0129.31
4.3.20.0050.0079.31
4.3.10.0030.0199.31
4.3.00.0030.0189.31

preferences:
43.49 ms | 401 KiB | 5 Q