3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "1": "tag_es1;tag_es2;tag_es3", "2": "tag_en1;tag_en2;tag_en3" }, { "1": "tag_es1;tag_es2", "2": "tag_en1;tag_en2" } ]'; $result = []; foreach (json_decode($json, true) as $i => $row) { foreach ($row as $id => $delimited) { foreach (explode(';', $delimited) as $key => $value) { $result[$i][$key][$id] = $value; } } } var_export($result);

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.4.120.0130.00720.72
8.4.110.0050.00419.59
8.4.100.0100.01017.67
8.4.90.0130.00720.24
8.4.80.0060.00218.85
8.4.70.0120.00918.98
8.4.60.0060.00318.67
8.4.50.0160.00619.41
8.4.40.0110.00819.24
8.4.30.0110.00820.50
8.4.20.0100.01017.87
8.4.10.0030.01621.77
8.3.250.0100.00818.98
8.3.240.0090.01216.66
8.3.230.0100.01016.48
8.3.220.0120.00619.01
8.3.210.0030.00516.84
8.3.200.0030.00616.82
8.3.190.0120.00516.82
8.3.180.0120.00618.51
8.3.170.0120.00616.62
8.3.160.0040.00418.17
8.3.150.0070.01316.57
8.3.140.0040.00417.37
8.3.130.0000.01018.46
8.3.120.0060.00318.61
8.3.110.0110.00020.94
8.3.100.0050.00324.06
8.3.90.0030.01026.77
8.3.80.0040.00416.88
8.3.70.0140.00416.58
8.3.60.0150.00718.43
8.3.50.0100.00720.06
8.3.40.0070.01118.84
8.3.30.0090.00518.95
8.3.20.0070.00024.18
8.3.10.0030.00524.66
8.3.00.0030.00526.16
8.2.290.0140.00616.63
8.2.280.0060.00222.70
8.2.270.0120.00618.93
8.2.260.0060.00318.38
8.2.250.0090.00618.22
8.2.240.0150.00618.77
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00618.29
8.2.190.0070.00716.58
8.2.180.0040.01425.92
8.2.170.0120.00318.95
8.2.160.0160.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.00
8.2.110.0060.00320.35
8.2.100.0060.00619.58
8.2.90.0040.00417.75
8.2.80.0070.00318.73
8.2.70.0060.00317.63
8.2.60.0060.00317.63
8.2.50.0080.00017.75
8.2.40.0040.00719.35
8.2.30.0070.00018.18
8.2.20.0040.00420.31
8.2.10.0000.00718.09
8.2.00.0040.00419.30
8.1.330.0120.00816.11
8.1.320.0150.00416.04
8.1.310.0000.00818.10
8.1.300.0120.00618.30
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00421.00
8.1.230.0040.00822.16
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0080.00017.48
8.1.190.0040.00417.23
8.1.180.0060.00619.06
8.1.170.0040.00419.03
8.1.160.0050.00318.75
8.1.150.0000.00718.65
8.1.140.0040.00417.39
8.1.130.0070.00018.88
8.1.120.0070.00017.43
8.1.110.0040.00417.32
8.1.100.0000.00717.34
8.1.90.0040.00417.35
8.1.80.0000.00817.48
8.1.70.0040.00417.48
8.1.60.0040.00417.40
8.1.50.0040.01117.48
8.1.40.0180.00017.41
8.1.30.0160.00817.55
8.1.20.0190.00317.59
8.1.10.0170.00717.41
8.1.00.0130.00617.39
8.0.300.0090.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0030.00316.81
8.0.260.0040.00418.37
8.0.250.0040.00416.90
8.0.240.0000.00616.85
8.0.230.0000.00716.80
8.0.220.0030.00316.88
8.0.210.0080.00016.93
8.0.200.0030.00316.82
8.0.190.0030.00616.97
8.0.180.0190.00016.80
8.0.170.0180.00316.86
8.0.160.0140.00516.63
8.0.150.0140.00316.77
8.0.140.0080.00616.74
8.0.130.0140.00516.74
8.0.120.0210.00016.77
8.0.110.0200.00016.79
8.0.100.0190.00016.79
8.0.90.0170.00316.73
8.0.80.0200.00016.88
8.0.70.0170.00516.64
8.0.60.0100.01016.79
8.0.50.0150.00816.79
8.0.30.0160.00516.77
8.0.20.0160.00616.91
8.0.10.0110.01117.00
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0030.00316.39
7.4.290.0190.00516.47
7.4.280.0140.00316.38
7.4.270.0140.00416.34
7.4.260.0080.00315.99
7.4.250.0060.00316.46
7.4.240.0110.00016.37
7.4.230.0090.00316.36
7.4.220.0030.00916.57
7.4.210.0060.00616.39
7.4.200.0070.01116.51
7.4.190.0120.00816.54
7.4.180.0120.00816.48
7.4.160.0170.00416.58
7.4.150.0220.00016.50
7.4.140.0220.00016.36
7.4.130.0170.00316.30
7.4.120.0180.00316.26
7.4.110.0130.00316.42
7.4.100.0080.00416.38
7.4.90.0060.00616.36
7.4.80.0120.00616.44
7.4.70.0110.00016.29
7.4.60.0090.00216.23
7.4.50.0090.00416.18
7.4.40.0080.00716.29
7.4.30.0140.00316.41
7.4.20.0090.00516.30
7.4.10.0070.00916.47
7.4.00.0000.01316.50

preferences:
85.41 ms | 403 KiB | 5 Q