3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr ='[{ "other": { "1": { "type": "Network", "label": "Technology", "value": "GSM / HSPA / LTE" }, "2": { "type": "Network", "label": "2G bands", "value": "GSM 850 / 900 / 1800 / 1900 - SIM 1 & SIM 2" }, "3": { "type": "Network", "label": "3G bands", "value": "HSDPA 850 / 900 / 1900 / 2100" }, "4": { "type": "Network", "label": "4G bands", "value": "LTE band 1(2100), 3(1800), 5(850), 7(2600), 8(900), 20(800), 38(2600), 40(2300), 41(2500)" }, "5": { "type": "Network", "label": "Speed", "value": "HSPA 42.2/5.76 Mbps, LTE-A (2CA) Cat12 600/50 Mbps" }, "6": { "type": "Network", "label": "GPRS", "value": "Yes" }, "7": { "type": "Network", "label": "EDGE", "value": "Yes" }, "8": { "type": "Launch", "label": "Announced", "value": "2019, January" }, "9": { "type": "Launch", "label": "Status", "value": "Available. Released 2019, February" }, "10": { "type": "Body", "label": "Dimensions", "value": "156.4 x 74.5 x 8.8 mm (6.16 x 2.93 x 0.35 in)" }, "11": { "type": "Body", "label": "Weight", "value": "186 g (6.56 oz)" }, "12": { "type": "Body", "label": "SIM", "value": "Dual SIM (Nano-SIM, dual stand-by)" }, "13": { "type": "Display", "label": "Type", "value": "PLS TFT capacitive touchscreen, 16M colors" }, "14": { "type": "Display", "label": "Size", "value": "6.3 inches, 97.4 cm2 (~83.6% screen-to-body ratio)" }, "15": { "type": "Display", "label": "Resolution", "value": "1080 x 2340 pixels, 19.5:9 ratio (~409 ppi density)" }, "16": { "type": "Platform", "label": "OS", "value": "Android 8.1 (Oreo); Experience 9.5" }, "17": { "type": "Platform", "label": "Chipset", "value": "Exynos 7904 (14 nm)" }, "18": { "type": "Platform", "label": "CPU", "value": "Octa-core (2x1.8 GHz Cortex-A73 & 6x1.6 GHz Cortex-A53)" }, "19": { "type": "Platform", "label": "GPU", "value": "Mali-G71 MP2" }, "20": { "type": "Memory", "label": "Card slot", "value": "microSD, up to 1 TB (dedicated slot)" }, "21": { "type": "Memory", "label": "Internal", "value": "64 GB, 4 GB RAM or 32 GB, 3 GB RAM" }, "22": { "type": "Main Camera", "label": "Dual", "value": "13 MP, f/1.9, 1/3.1\", 1.12um, PDAF" }, "23": { "type": "Main Camera", "label": "Dual", "value": "5 MP, f/2.2, 12mm (ultrawide)" }, "24": { "type": "Main Camera", "label": "Features", "value": "LED flash, panorama, HDR" }, "25": { "type": "Main Camera", "label": "Video", "value": "1080p@30fps" }, "26": { "type": "Selfie camera", "label": "Single", "value": "8 MP, f/2.0, 25mm (wide)" }, "27": { "type": "Selfie camera", "label": "Features", "value": "HDR" }, "28": { "type": "Selfie camera", "label": "Video", "value": "1080p@30fps" }, "29": { "type": "Sound", "label": "Loudspeaker", "value": "Yes" }, "30": { "type": "Sound", "label": "3.5mm jack", "value": "Yes" }, "31": { "type": "Sound", "value": "Active noise cancellation with dedicated mic" }, "32": { "type": "Sound", "value": "Dolby Atmos sound" }, "33": { "type": "Comms", "label": "WLAN", "value": "Wi-Fi 802.11 b/g/n, WiFi Direct, hotspot" }, "34": { "type": "Comms", "label": "Bluetooth", "value": "5.0, A2DP, LE" }, "35": { "type": "Comms", "label": "GPS", "value": "Yes, with A-GPS, GLONASS, BDS" }, "36": { "type": "Comms", "label": "Radio", "value": "FM radio, RDS, recording" }, "37": { "type": "Comms", "label": "USB", "value": "2.0, Type-C 1.0 reversible connector" }, "38": { "type": "Features", "label": "Sensors", "value": "Fingerprint (rear-mounted), accelerometer, gyro, proximity, compass" }, "39": { "type": "Battery", "value": "Non-removable Li-Po 5000 mAh battery" }, "40": { "type": "Battery", "label": "Charging", "value": "Fast battery charging 15W" }, "41": { "type": "Misc", "label": "Colors", "value": "Ocean Blue, Charcoal Black" }, "42": { "type": "Misc", "label": "Models", "value": "SM-M205F, SM-M205FN, SM-M205G" }, "43": { "type": "Misc", "label": "SAR EU", "value": "0.25 W/kg (head) 1.59 W/kg (body)" }, "44": { "type": "Misc", "label": "Price", "value": "About 220 EUR" }, "45": { "type": "Tests", "label": "Performance", "value": "Basemark OS II: 1846 / Basemark OS II 2.0: 2025Basemark X: 8434" }, "46": { "type": "Tests", "label": "Display", "value": "Contrast ratio: 1333:1 (nominal), 2.960 (sunlight)" }, "47": { "type": "Tests", "label": "Camera", "value": "Photo / Video" }, "48": { "type": "Tests", "label": "Loudspeaker", "value": "Voice 67dB / Noise 66dB / Ring 68dB" }, "49": { "type": "Tests", "label": "Audio quality", "value": "Noise -90.5dB / Crosstalk -91.7dB" }, "50": { "type": "Tests", "label": "Battery life", "value": "Endurance rating 103h" } } }]'; $arr1 = json_decode($arr, true); $finalArray = array(); foreach($arr1[0]['other'] as $key=>$value){ $finalArray[$value['type']][] = $value; } $newArray = []; $newArray[] = array('other'=>$finalArray); print_r($newArray);

Abusive script

This script was stopped while abusing our resources

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.110.0000.00820.94
8.3.100.0040.00424.06
8.3.90.0060.00326.77
8.3.80.0030.00619.36
8.3.70.0110.00716.63
8.3.60.0000.01418.31
8.3.50.0220.00918.18
8.3.40.0060.00918.66
8.3.30.0090.00618.68
8.3.20.0000.00820.73
8.3.10.0050.00321.91
8.3.00.0030.00523.52
8.2.230.0070.00422.58
8.2.220.0070.01037.54
8.2.210.0080.00026.77
8.2.200.0070.00318.88
8.2.190.0090.00616.58
8.2.180.0120.00316.75
8.2.170.0090.00922.96
8.2.160.0100.00720.53
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0060.00620.35
8.2.100.0060.00618.03
8.2.90.0050.00218.22
8.2.80.0030.00518.05
8.2.70.0060.00318.01
8.2.60.0030.00518.02
8.2.50.0080.00018.10
8.2.40.0000.00720.59
8.2.30.0000.00819.34
8.2.20.0000.00718.06
8.2.10.0000.00819.29
8.2.00.0040.00421.09
8.1.290.0040.00430.84
8.1.280.0070.01025.92
8.1.270.0030.00523.99
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00422.37
8.1.230.0110.00022.04
8.1.220.0040.00417.78
8.1.210.0030.00619.16
8.1.200.0030.00517.48
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00518.73
8.1.160.0040.00418.94
8.1.150.0000.00719.00
8.1.140.0070.00018.86
8.1.130.0000.00720.20
8.1.120.0000.00817.40
8.1.110.0040.00417.52
8.1.100.0030.00517.40
8.1.90.0040.00417.43
8.1.80.0020.00517.57
8.1.70.0050.00317.46
8.1.60.0040.00417.61
8.1.50.0050.00317.58
8.1.40.0040.00417.58
8.1.30.0040.00817.78
8.1.20.0000.00817.74
8.1.10.0040.00417.51
8.1.00.0070.00017.50
8.0.300.0040.00419.98
8.0.290.0080.00016.88
8.0.280.0000.00718.54
8.0.270.0080.00017.33
8.0.260.0070.00018.51
8.0.250.0030.00317.05
8.0.240.0000.00716.91
8.0.230.0030.00317.02
8.0.220.0000.01016.82
8.0.210.0070.00016.89
8.0.200.0000.00716.98
8.0.190.0060.00317.00
8.0.180.0000.00716.93
8.0.170.0060.00316.81
8.0.160.0030.00516.99
8.0.150.0040.00416.80
8.0.140.0040.00416.97
8.0.130.0060.00013.44
8.0.120.0030.00516.88
8.0.110.0040.00416.78
8.0.100.0050.00316.76
8.0.90.0040.00416.78
8.0.80.0180.00316.99
8.0.70.0000.00717.00
8.0.60.0040.00416.95
8.0.50.0000.00716.75
8.0.30.0160.00716.99
8.0.20.0090.01017.29
8.0.10.0050.00316.86
8.0.00.0100.01116.72
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0030.00516.57
7.4.290.0000.00816.71
7.4.280.0040.00416.61
7.4.270.0030.00316.69
7.4.260.0030.00316.57
7.4.250.0000.00716.48
7.4.240.0030.00416.67
7.4.230.0040.00316.77
7.4.220.0020.00516.56
7.4.210.0060.00916.57
7.4.200.0040.00416.41
7.4.160.0050.01316.45
7.4.130.0130.00316.43
7.4.120.0060.01516.40
7.4.110.0100.00716.56
7.4.100.0060.01316.58
7.4.90.0090.00616.53
7.4.80.0160.00619.39
7.4.70.0100.00716.54
7.4.60.0030.01316.54
7.4.50.0070.00716.60
7.4.40.0070.01016.46
7.4.00.0080.00915.23
7.3.330.0070.00013.08
7.3.320.0000.00613.28
7.3.310.0000.00716.22
7.3.300.0000.00716.42
7.3.290.0000.00716.43
7.3.280.0080.00916.35
7.3.260.0120.00816.57
7.3.240.0110.00916.47
7.3.230.0150.00916.39
7.3.210.0110.00916.48
7.3.200.0120.00616.60
7.3.190.0090.00616.41
7.3.180.0060.01016.54
7.3.170.0060.00916.57
7.3.160.0100.00616.39
7.3.120.0100.01014.77
7.3.110.0070.01114.86
7.3.100.0030.01015.09
7.3.90.0000.01115.09
7.3.80.0090.00615.14
7.3.70.0070.00314.93
7.3.60.0100.00514.95
7.3.50.0100.00814.94
7.3.40.0070.00614.79
7.3.30.0060.01114.81
7.3.20.0090.00516.48
7.3.10.0050.00716.75
7.3.00.0060.00616.83
7.2.330.0050.01316.81
7.2.320.0000.01816.81
7.2.310.0070.01016.93
7.2.300.0100.00716.60
7.2.290.0090.01216.92
7.2.250.0100.00714.73
7.2.240.0040.01615.18
7.2.230.0100.00315.11
7.2.220.0040.01114.79
7.2.210.0030.00915.08
7.2.200.0030.01015.11
7.2.190.0090.00915.13
7.2.180.0060.00715.02
7.2.170.0060.01014.86
7.2.160.0040.01215.05
7.2.150.0120.00516.64
7.2.140.0040.01416.89
7.2.130.0070.00716.77
7.2.120.0050.00916.71
7.2.110.0090.00416.86
7.2.100.0080.00616.84
7.2.90.0050.00716.90
7.2.80.0080.00616.71
7.2.70.0110.00316.86
7.2.60.0070.00616.89
7.2.50.0090.00816.78
7.2.40.0050.01016.80
7.2.30.0110.00617.01
7.2.20.0050.00817.13
7.2.10.0080.00716.95
7.2.00.0070.00916.97
7.1.330.0060.01015.85
7.1.320.0070.00415.81
7.1.310.0100.00615.71
7.1.300.0110.00615.68
7.1.290.0030.01215.87
7.1.280.0040.00615.65
7.1.270.0040.01115.73
7.1.260.0090.00915.76
7.1.250.0040.00915.63

preferences:
149.63 ms | 403 KiB | 5 Q