3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source_json = <<<JSON { "success": true, "test2": [ [ [ { "nama": "Henru Kay", "date": "29 Apr 2019" }, { "nama": "B", "date": "28 Apr 2019" } ] ], [ [ { "nama": "C", "date": "25 Apr 2019" } ] ] ] } JSON; $array = json_decode($source_json, true); $array['test2'] = array_merge(...array_merge(...$array['test2'])); echo json_encode($array, JSON_PRETTY_PRINT);

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.140.0100.01317.64
8.4.130.0080.01217.56
8.4.120.0120.00720.52
8.4.110.0150.00522.38
8.4.100.0120.00918.50
8.4.90.0110.00818.84
8.4.80.0150.00620.63
8.4.70.0080.00818.08
8.4.60.0130.00720.68
8.4.50.0060.01017.65
8.4.40.0200.00019.60
8.4.30.0030.00519.36
8.4.20.0100.01020.75
8.4.10.0080.00820.49
8.3.270.0140.00516.44
8.3.260.0140.00516.51
8.3.250.0030.00518.71
8.3.240.0100.00620.55
8.3.230.0120.00716.51
8.3.220.0050.00318.83
8.3.210.0130.00516.45
8.3.200.0020.00716.63
8.3.190.0130.00517.05
8.3.180.0070.01216.31
8.3.170.0040.00816.61
8.3.160.0110.00718.43
8.3.150.0100.01016.88
8.3.140.0070.00716.60
8.3.130.0130.00618.14
8.3.120.0040.00420.88
8.3.110.0060.00320.94
8.3.100.0080.00018.37
8.3.90.0000.00718.18
8.3.80.0060.00318.43
8.3.70.0170.00318.43
8.3.60.0060.00918.04
8.3.50.0070.01017.36
8.3.40.0060.01018.63
8.3.30.0110.00318.80
8.3.20.0000.00921.90
8.3.10.0050.00221.60
8.3.00.0070.00021.85
8.2.290.0100.00920.51
8.2.280.0070.00918.46
8.2.270.0120.00616.55
8.2.260.0090.00918.74
8.2.250.0100.00317.31
8.2.240.0060.00917.17
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0000.00926.77
8.2.200.0060.00318.05
8.2.190.0100.00316.75
8.2.180.0060.00916.38
8.2.170.0090.00618.95
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0090.00019.67
8.2.120.0060.00326.35
8.2.110.0030.00622.29
8.2.100.0110.00017.91
8.2.90.0070.00020.60
8.2.80.0100.00017.97
8.2.70.0080.00018.05
8.2.60.0050.00318.22
8.2.50.0050.00218.10
8.2.40.0000.00719.29
8.2.30.0040.00420.45
8.2.20.0040.00418.11
8.2.10.0040.00419.26
8.2.00.0000.00717.96
8.1.330.0090.01022.02
8.1.320.0150.00416.01
8.1.310.0110.00716.66
8.1.300.0060.00917.95
8.1.290.0100.00018.88
8.1.280.0080.00825.92
8.1.270.0040.00423.75
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00623.95
8.1.230.0040.00719.23
8.1.220.0080.00017.74
8.1.210.0040.00418.91
8.1.200.0100.00017.25
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0050.00318.50
8.1.160.0050.00318.87
8.1.150.0000.00718.73
8.1.140.0040.00418.83
8.1.130.0090.00020.26
8.1.120.0000.01217.28
8.1.110.0080.00017.32
8.1.100.0070.00017.45
8.1.90.0060.00317.40
8.1.80.0040.00417.24
8.1.70.0000.00717.38
8.1.60.0030.00517.49
8.1.50.0000.00817.48
8.1.40.0000.00817.42
8.1.30.0060.00317.57
8.1.20.0030.00617.48
8.1.10.0040.00417.61
8.1.00.0030.00717.52
8.0.300.0030.00619.98
8.0.290.0070.00016.75
8.0.280.0040.00418.45
8.0.270.0080.00017.32
8.0.260.0000.00618.51
8.0.250.0090.00016.96
8.0.240.0030.00516.94
8.0.230.0030.00316.96
8.0.220.0030.00316.86
8.0.210.0030.00316.96
8.0.200.0030.00316.96
8.0.190.0040.00416.80
8.0.180.0080.00016.81
8.0.170.0080.00016.99
8.0.160.0050.00616.93
8.0.150.0050.00316.73
8.0.140.0030.00516.85
8.0.130.0030.00313.36
8.0.120.0040.00416.75
8.0.110.0000.00816.84
8.0.100.0040.00416.79
8.0.90.0040.00416.84
8.0.80.0070.01016.86
8.0.70.0000.00716.89
8.0.60.0030.00616.91
8.0.50.0070.00016.83
8.0.30.0120.00817.12
8.0.20.0110.00817.09
8.0.10.0050.00316.80
8.0.00.0110.00716.97
7.4.330.0000.00516.77
7.4.320.0040.00416.56
7.4.300.0060.00016.45
7.4.290.0030.00316.52
7.4.280.0060.00616.45
7.4.270.0030.00316.46
7.4.260.0030.00316.43
7.4.250.0000.00716.55
7.4.240.0030.00316.54
7.4.230.0060.00016.24
7.4.220.0040.00416.24
7.4.210.0130.00516.41
7.4.200.0030.00616.36
7.4.140.0000.01817.86
7.4.130.0170.00716.43
7.4.120.0130.01316.39
7.4.110.0100.00716.55
7.4.100.0060.01416.41
7.4.90.0140.00316.45
7.4.80.0080.01219.39
7.4.70.0230.00816.44
7.4.60.0040.01216.46
7.4.50.0070.01116.50
7.4.40.0060.01316.51
7.4.00.0100.00314.94
7.3.330.0000.00513.10
7.3.320.0050.00013.09
7.3.310.0070.00016.10
7.3.300.0000.00716.21
7.3.290.0070.01016.43
7.3.280.0080.01016.29
7.3.260.0100.01016.45
7.3.240.0140.00516.42
7.3.230.0100.01016.29
7.3.210.0140.00316.28
7.3.200.0060.00916.27
7.3.190.0070.01416.52
7.3.180.0150.00016.43
7.3.170.0120.00616.39
7.3.160.0120.00416.23
7.3.40.0030.00714.78
7.3.30.0030.00714.53
7.3.20.0140.00014.76
7.3.10.0120.00314.83
7.3.00.0070.00714.71
7.2.330.0110.01116.51
7.2.320.0070.01016.58
7.2.310.0140.00416.48
7.2.300.0030.02016.79
7.2.290.0140.00816.80
7.2.170.0170.00314.62
7.2.160.0090.01515.06
7.2.150.0200.01015.18
7.2.140.0140.01014.95
7.2.130.0110.00314.98
7.2.120.0160.01614.92
7.2.110.0160.00914.91
7.2.100.0230.00315.00
7.2.90.0150.01214.92
7.2.80.0070.01014.96
7.2.70.0140.01114.91
7.2.60.0170.01014.97
7.2.50.0090.00615.27
7.2.40.0040.00915.13
7.2.30.0160.00915.07
7.2.20.0090.00615.08
7.2.10.0070.00714.80
7.2.00.0110.00615.07
7.1.280.0140.00313.60
7.1.270.0070.00713.60
7.1.260.0160.01013.74
7.1.250.0180.00913.94

preferences:
134.43 ms | 403 KiB | 5 Q