3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{ "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" } } }]'; $jarr = json_decode($json,true); $res = []; foreach($jarr[0]['other'] as $v){ if(array_key_exists($v['type'], $res)){ $res[$v['type']] +=1; }else{ $res[$v['type']] = 1; } } print_r($res);

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.5.00.0180.00719.85
8.4.150.0020.00014.05
8.4.140.0120.00917.58
8.4.130.0120.00817.66
8.4.120.0040.00420.39
8.4.110.0130.00722.51
8.4.100.0140.00717.94
8.4.90.0140.00720.84
8.4.80.0050.00417.79
8.4.70.0130.00717.84
8.4.60.0150.00318.57
8.4.50.0060.00819.63
8.4.40.0100.01017.45
8.4.30.0070.01122.40
8.4.20.0030.01418.82
8.4.10.0060.00319.45
8.3.280.0100.01018.41
8.3.270.0110.00916.75
8.3.260.0060.00316.80
8.3.250.0100.00919.00
8.3.240.0120.00516.78
8.3.230.0060.00216.74
8.3.220.0090.00917.36
8.3.210.0110.00816.69
8.3.200.0100.00916.72
8.3.190.0100.01117.08
8.3.180.0090.01016.85
8.3.170.0120.00618.63
8.3.160.0160.00316.63
8.3.150.0110.00416.65
8.3.140.0090.00016.97
8.3.130.0120.00318.24
8.3.120.0050.00520.76
8.3.110.0060.00316.63
8.3.100.0040.00416.41
8.3.90.0080.00018.30
8.3.80.0080.00318.43
8.3.70.0090.01216.63
8.3.60.0100.01018.43
8.3.50.0090.00717.44
8.3.40.0040.01118.97
8.3.30.0060.00918.63
8.3.20.0000.01020.60
8.3.10.0080.00021.90
8.3.00.0050.00323.48
8.2.290.0140.00520.45
8.2.280.0060.00518.48
8.2.270.0040.01416.48
8.2.260.0050.00316.72
8.2.250.0040.00418.36
8.2.240.0150.00017.09
8.2.230.0040.00420.94
8.2.220.0080.00024.06
8.2.210.0150.00326.77
8.2.200.0060.00616.50
8.2.190.0140.00716.58
8.2.180.0100.00716.63
8.2.170.0150.00019.13
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00026.16
8.2.110.0030.00620.52
8.2.100.0070.00417.97
8.2.90.0000.00917.88
8.2.80.0000.00820.53
8.2.70.0040.00417.91
8.2.60.0000.00818.01
8.2.50.0000.00818.10
8.2.40.0040.00419.44
8.2.30.0070.00019.22
8.2.20.0020.00518.15
8.2.10.0040.00419.25
8.2.00.0070.00019.34
8.1.330.0100.00918.24
8.1.320.0080.01116.13
8.1.310.0120.00617.86
8.1.300.0060.00317.77
8.1.290.0040.00418.88
8.1.280.0130.00325.92
8.1.270.0050.00322.05
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0070.00722.61
8.1.230.0070.00419.04
8.1.220.0080.00017.80
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0030.00717.11
8.1.180.0050.00318.10
8.1.170.0060.00318.65
8.1.160.0070.00018.96
8.1.150.0030.00618.86
8.1.140.0080.00017.49
8.1.130.0030.00320.07
8.1.120.0000.00717.45
8.1.110.0030.00517.44
8.1.100.0040.00417.48
8.1.90.0030.00617.42
8.1.80.0050.00317.40
8.1.70.0050.00317.46
8.1.60.0030.00517.48
8.1.50.0050.00317.43
8.1.40.0000.00917.53
8.1.30.0060.00617.57
8.1.20.0000.00817.69
8.1.10.0050.00317.58
8.1.00.0060.00317.51
8.0.300.0050.00321.50
8.0.290.0000.00916.75
8.0.280.0000.00718.38
8.0.270.0040.00416.71
8.0.260.0030.00318.38
8.0.250.0030.00417.00
8.0.240.0030.00317.00
8.0.230.0000.00716.84
8.0.220.0090.00016.79
8.0.210.0000.00716.82
8.0.200.0000.00716.96
8.0.190.0000.00716.84
8.0.180.0070.00016.89
8.0.170.0040.00416.93
8.0.160.0060.00316.90
8.0.150.0030.00316.85
8.0.140.0000.00716.91
8.0.130.0050.00013.34
8.0.120.0040.00416.88
8.0.110.0070.00016.76
8.0.100.0040.00416.80
8.0.90.0050.00316.93
8.0.80.0070.01116.83
8.0.70.0040.00416.82
8.0.60.0000.00816.88
8.0.50.0030.00516.88
8.0.30.0070.01017.16
8.0.20.0160.01017.03
8.0.10.0000.00717.05
8.0.00.0090.01316.84
7.4.330.0020.00215.55
7.4.320.0030.00316.64
7.4.300.0000.00616.52
7.4.290.0030.00316.54
7.4.280.0000.00716.51
7.4.270.0000.00716.62
7.4.260.0050.00316.59
7.4.250.0030.00316.59
7.4.240.0030.00516.56
7.4.230.0030.00316.64
7.4.220.0050.00316.50
7.4.210.0060.00816.59
7.4.200.0000.00816.53
7.4.160.0110.00916.49
7.4.130.0100.00716.47
7.4.120.0120.01016.66
7.4.110.0070.01016.64
7.4.100.0070.01716.40
7.4.90.0130.00316.55
7.4.80.0150.00619.39
7.4.70.0110.00616.52
7.4.60.0040.01816.35
7.4.50.0070.00316.46
7.4.40.0060.00916.55
7.4.10.0070.01015.14
7.4.00.0070.01114.94
7.3.330.0050.00013.12
7.3.320.0000.00613.01
7.3.310.0000.00716.35
7.3.300.0000.00716.25
7.3.290.0000.00716.23
7.3.280.0080.00716.24
7.3.260.0120.00816.42
7.3.240.0130.00516.49
7.3.230.0120.00616.46
7.3.210.0070.01016.49
7.3.200.0110.00816.30
7.3.190.0030.01316.53
7.3.180.0110.00716.43
7.3.170.0130.00616.52
7.3.160.0120.00416.41
7.3.130.0040.01214.75
7.3.120.0100.00814.91
7.3.110.0060.01215.02
7.3.100.0020.01314.79
7.3.90.0030.00914.72
7.3.80.0080.00814.77
7.3.70.0130.00314.70
7.3.60.0040.00814.89
7.3.50.0100.00514.86
7.3.40.0080.00714.76
7.3.30.0070.00714.83
7.3.20.0110.00515.95
7.3.10.0100.00715.91
7.3.00.0150.00816.06
7.2.330.0030.01616.88
7.2.320.0060.01216.71
7.2.310.0070.01016.82
7.2.300.0110.01116.67
7.2.290.0040.01516.59
7.2.260.0090.00914.95
7.2.250.0050.01315.14
7.2.240.0030.01214.99
7.2.230.0070.00814.99
7.2.220.0060.00815.07
7.2.210.0050.00915.06
7.2.200.0020.01015.04
7.2.190.0070.00715.06
7.2.180.0090.00714.96
7.2.170.0090.00915.04
7.2.160.0110.00814.97
7.2.150.0100.00816.19
7.2.140.0090.00516.11
7.2.130.0070.00716.08
7.2.120.0110.00415.95
7.2.110.0100.00915.90
7.2.100.0090.00616.07
7.2.90.0080.00716.10
7.2.80.0130.00515.98
7.2.70.0140.00616.01
7.2.60.0100.00816.13
7.2.50.0140.00416.25
7.2.40.0060.00916.06
7.2.30.0130.00715.96
7.2.20.0110.01015.97
7.2.10.0130.00715.84
7.2.00.0100.00715.93
7.1.330.0070.00515.74
7.1.320.0020.00815.68
7.1.310.0040.01115.72
7.1.300.0070.00715.12
7.1.290.0100.00415.23
7.1.280.0090.00615.25
7.1.270.0070.00714.94
7.1.260.0110.00815.29
7.1.250.0070.00614.84
7.1.240.0000.01415.78
7.1.230.0030.01015.89
7.1.220.0000.00815.80
7.1.210.0030.01015.68
7.1.200.0070.00715.55
7.1.190.0040.01115.93
7.1.180.0080.00815.88
7.1.170.0060.00615.77
7.1.160.0030.00515.65
7.1.150.0060.00915.77
7.1.140.0000.01015.72
7.1.130.0070.00715.93
7.1.120.0060.00615.72
7.1.110.0090.00015.84
7.1.100.0110.00016.00
7.1.90.0030.00615.75
7.1.80.0080.00415.84
7.1.70.0000.01415.72
7.1.60.0040.00715.43
7.1.50.0110.00415.84
7.1.40.0110.00315.53
7.1.30.0070.00715.49
7.1.20.0100.00015.68
7.1.10.0070.00715.77
7.1.00.0030.00615.93

preferences:
31.4 ms | 403 KiB | 5 Q