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 ($myarray 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.0060.00918.41
8.3.50.0090.01421.27
8.3.40.0110.00718.60
8.3.30.0030.01120.32
8.3.20.0080.00020.40
8.3.10.0080.00020.92
8.3.00.0040.00423.71
8.2.180.0140.01016.50
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0070.00021.07
8.2.110.0090.00019.38
8.2.100.0040.00817.91
8.2.90.0040.00419.17
8.2.80.0070.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00418.16
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0030.00519.42
8.2.20.0040.00417.64
8.2.10.0050.00317.66
8.2.00.0000.00717.75
8.1.280.0100.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00722.46
8.1.230.0070.00420.88
8.1.220.0040.00418.77
8.1.210.0000.00819.04
8.1.200.0050.00517.35
8.1.190.0040.00417.53
8.1.180.0100.00018.10
8.1.170.0050.00318.49
8.1.160.0000.00718.90
8.1.150.0050.00318.64
8.1.140.0000.00817.46
8.1.130.0050.00317.76
8.1.120.0040.00417.47
8.1.110.0030.00317.47
8.1.100.0040.00417.45
8.1.90.0000.00817.46
8.1.80.0000.00717.30
8.1.70.0000.00817.34
8.1.60.0000.00817.52
8.1.50.0000.00717.41
8.1.40.0030.00717.51
8.1.30.0080.00017.64
8.1.20.0030.00517.60
8.1.10.0080.00017.43
8.1.00.0030.00617.38
8.0.300.0040.00419.89
8.0.290.0030.00517.15
8.0.280.0020.00518.32
8.0.270.0000.00817.13
8.0.260.0030.00316.83
8.0.250.0070.00016.95
8.0.240.0040.00416.86
8.0.230.0030.00316.95
8.0.220.0060.00316.89
8.0.210.0070.00016.79
8.0.200.0030.00316.84
8.0.190.0050.00316.95
8.0.180.0050.00316.80
8.0.170.0030.00516.79
8.0.160.0000.00716.82
8.0.150.0050.00316.82
8.0.140.0000.00716.75
8.0.130.0060.00013.36
8.0.120.0050.00216.87
8.0.110.0050.00316.75
8.0.100.0070.00016.72
8.0.90.0040.00416.91
8.0.80.0160.00016.80
8.0.70.0040.00416.84
8.0.60.0000.00716.68
8.0.50.0000.00716.69
8.0.30.0060.01216.93
8.0.20.0120.00717.40
8.0.10.0000.00816.97
8.0.00.0120.00516.70
7.4.330.0000.00615.02
7.4.320.0060.00016.40
7.4.300.0030.00316.64
7.4.290.0000.00716.59
7.4.280.0000.00716.61
7.4.270.0030.00316.43
7.4.260.0060.00013.17
7.4.250.0040.00416.54
7.4.240.0070.00016.59
7.4.230.0000.00716.35
7.4.220.0070.01316.56
7.4.210.0080.00816.55
7.4.200.0040.00416.41
7.4.190.0040.00416.77
7.4.160.0000.01616.49
7.4.150.0110.00617.40
7.4.140.0090.00917.86
7.4.130.0090.00816.49
7.4.120.0100.01016.59
7.4.110.0140.00316.63
7.4.100.0070.01016.40
7.4.90.0100.00716.49
7.4.80.0110.00719.39
7.4.70.0070.01016.47
7.4.60.0040.01316.43
7.4.50.0000.00716.65
7.4.40.0040.00822.77
7.4.30.0170.00316.59
7.4.00.0060.00614.88
7.3.330.0050.00013.17
7.3.320.0030.00313.07
7.3.310.0030.00316.23
7.3.300.0030.00316.23
7.3.290.0070.00716.28
7.3.280.0090.00716.32
7.3.270.0100.00717.40
7.3.260.0080.01018.24
7.3.250.0100.00716.46
7.3.240.0090.00916.31
7.3.230.0060.01116.39
7.3.210.0070.01016.39
7.3.200.0060.01419.39
7.3.190.0150.00616.40
7.3.180.0070.01416.29
7.3.170.0030.01316.47
7.3.160.0070.01016.60
7.3.120.0090.00314.96
7.2.330.0110.00616.59
7.2.320.0030.01316.50
7.2.310.0100.00716.77
7.2.300.0120.00716.62
7.2.290.0100.00716.66
7.1.70.0030.00517.09
7.1.60.0130.01319.17
7.1.50.0070.00316.78
7.1.00.0070.03022.37
7.0.200.0040.00416.79
7.0.140.0100.06322.07
7.0.100.0100.08719.95
7.0.90.0100.08019.93
7.0.80.0130.06719.87
7.0.70.0130.07719.93
7.0.60.0300.05719.95
7.0.50.0270.08320.32
7.0.40.0000.07720.10
7.0.30.0200.08020.11
7.0.20.0100.09020.11
7.0.10.0100.07720.10
7.0.00.0200.07020.12
5.6.250.0130.06020.63
5.6.240.0100.07720.63
5.6.230.0170.04020.65
5.6.220.0070.06720.64
5.6.210.0170.07320.43
5.6.200.0130.07021.04
5.6.190.0030.07021.04
5.6.180.0070.08321.09
5.6.170.0130.07020.96
5.6.160.0070.08021.13
5.6.150.0100.06720.99
5.6.140.0100.08020.93
5.6.130.0070.08320.94
5.6.120.0030.07721.05
5.6.110.0070.07721.04
5.6.100.0070.07721.03
5.6.90.0130.08020.92
5.6.80.0070.08020.39
5.6.70.0100.08020.33
5.6.60.0070.08320.43
5.6.50.0070.07720.40
5.6.40.0030.05320.29
5.6.30.0030.05020.44
5.6.20.0100.07720.37
5.6.10.0170.08320.39
5.6.00.0100.07320.35
5.5.380.0130.07720.36
5.5.370.0070.08020.54
5.5.360.0030.08320.43
5.5.350.0000.04320.39
5.5.340.0070.08320.86
5.5.330.0000.08720.91
5.5.320.0100.07720.93
5.5.310.0130.08320.82
5.5.300.0130.07720.82
5.5.290.0030.05320.89
5.5.280.0100.07720.64
5.5.270.0070.07720.76
5.5.260.0070.04720.72
5.5.250.0030.09020.71
5.5.240.0130.07020.25
5.5.230.0070.08020.14
5.5.220.0130.07020.21
5.5.210.0170.07320.20
5.5.200.0100.03720.28
5.5.190.0100.08320.10
5.5.180.0170.06720.15
5.5.160.0130.07320.17
5.5.150.0000.07020.20
5.5.140.0100.07020.17
5.5.130.0100.07720.07
5.5.120.0200.05019.96
5.5.110.0130.07320.23
5.5.100.0030.05320.10
5.5.90.0030.07320.04
5.5.80.0070.07320.11
5.5.70.0130.06720.15
5.5.60.0100.08019.93
5.5.50.0070.08020.06
5.5.40.0070.07320.14
5.5.30.0100.07320.02
5.5.20.0130.07720.04
5.5.10.0070.04720.04
5.5.00.0030.07720.03
5.4.450.0100.07319.20
5.4.440.0130.06019.36
5.4.430.0030.07719.18
5.4.420.0070.07319.45
5.4.410.0030.08319.41
5.4.400.0030.06719.13
5.4.390.0100.05719.16
5.4.380.0100.06719.06
5.4.370.0130.07019.13
5.4.360.0170.06018.90
5.4.350.0070.04019.12
5.4.340.0030.08319.21
5.4.320.0100.06019.18
5.4.310.0130.07719.13
5.4.300.0070.07318.95
5.4.290.0100.06718.90
5.4.280.0100.07319.14
5.4.270.0030.08718.89
5.4.260.0170.05319.13
5.4.250.0100.07718.87
5.4.240.0170.04719.23
5.4.230.0000.08319.12
5.4.220.0070.06719.13
5.4.210.0070.06318.81
5.4.200.0170.06318.84
5.4.190.0100.07018.84
5.4.180.0100.07319.13
5.4.170.0130.06718.93
5.4.160.0070.05718.85
5.4.150.0000.04318.93
5.4.140.0030.04316.14
5.4.130.0000.04016.41
5.4.120.0030.03316.45
5.4.110.0000.04316.47
5.4.100.0030.03716.25
5.4.90.0000.03716.32
5.4.80.0100.03016.49
5.4.70.0000.04316.45
5.4.60.0100.03016.40
5.4.50.0030.06016.34
5.4.40.0030.03716.47
5.4.30.0100.03016.41
5.4.20.0000.04016.46
5.4.10.0070.03316.40
5.4.00.0070.03015.63
5.3.290.0030.05014.68
5.3.280.0070.05014.60
5.3.270.0100.05714.55
5.3.260.0070.07314.70
5.3.250.0000.04014.59
5.3.240.0070.03314.57
5.3.230.0030.04314.65
5.3.220.0030.03714.59
5.3.210.0000.04014.49
5.3.200.0000.03714.63
5.3.190.0030.03714.48
5.3.180.0070.03314.59
5.3.170.0100.03014.54
5.3.160.0100.04014.57
5.3.150.0130.03314.61
5.3.140.0000.04014.64
5.3.130.0130.05014.61
5.3.120.0000.04014.55
5.3.110.0030.03714.61
5.3.100.0070.03714.17
5.3.90.0070.06314.15
5.3.80.0100.07014.12
5.3.70.0030.05014.00
5.3.60.0070.03314.07
5.3.50.0000.04713.87
5.3.40.0030.04013.95
5.3.30.0100.03314.01
5.3.20.0000.04013.58
5.3.10.0030.03713.56
5.3.00.0070.03013.70
5.2.170.0000.03311.19
5.2.160.0000.03011.13
5.2.150.0070.03011.06
5.2.140.0030.03011.05
5.2.130.0000.04711.17
5.2.120.0070.02311.22
5.2.110.0030.02711.16
5.2.100.0030.02711.17
5.2.90.0030.03311.19
5.2.80.0070.04711.05
5.2.70.0000.03311.05
5.2.60.0030.03011.09
5.2.50.0030.02711.05
5.2.40.0000.03011.05
5.2.30.0030.02711.05
5.2.20.0000.03011.06
5.2.10.0030.03011.05
5.2.00.0000.03011.05
5.1.60.0000.03011.05
5.1.50.0000.02711.05
5.1.40.0000.02711.05
5.1.30.0030.02711.05
5.1.20.0030.02711.05
5.1.10.0000.03011.05
5.1.00.0030.02711.05
5.0.50.0000.02011.05
5.0.40.0130.01011.05
5.0.30.0030.02711.05
5.0.20.0000.03011.05
5.0.10.0000.02711.05
5.0.00.0030.03311.05
4.4.90.0000.01711.05
4.4.80.0000.01711.05
4.4.70.0030.01311.05
4.4.60.0000.02311.05
4.4.50.0000.01711.05
4.4.40.0030.02011.05
4.4.30.0000.01711.05
4.4.20.0030.01311.05
4.4.10.0030.01711.05
4.4.00.0030.02311.05
4.3.110.0030.01311.05
4.3.100.0000.01711.05
4.3.90.0030.01311.05
4.3.80.0070.02011.05
4.3.70.0000.01711.05
4.3.60.0000.01711.05
4.3.50.0000.03711.05
4.3.40.0000.04711.05
4.3.30.0030.03311.05
4.3.20.0000.02711.05
4.3.10.0070.03011.05
4.3.00.0000.03711.05

preferences:
42.43 ms | 401 KiB | 5 Q