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; $source_array = json_decode($source_json, true); array_walk($source_array['test2'], function(&$value) { $value = iterator_to_array(new RecursiveIteratorIterator(new RecursiveArrayIterator($value))); }); echo json_encode($source_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.0090.01217.79
8.4.130.0040.01317.95
8.4.120.0120.00724.09
8.4.110.0110.00922.45
8.4.100.0110.01017.75
8.4.90.0080.00418.84
8.4.80.0120.00918.00
8.4.70.0070.01218.05
8.4.60.0120.00819.11
8.4.50.0100.01018.80
8.4.40.0110.00719.41
8.4.30.0120.00819.25
8.4.20.0110.00020.82
8.4.10.0060.00320.61
8.3.270.0100.01016.48
8.3.260.0080.01216.51
8.3.250.0110.00818.86
8.3.240.0140.00517.09
8.3.230.0120.00516.76
8.3.220.0040.00517.41
8.3.210.0100.00918.41
8.3.200.0020.00716.82
8.3.190.0150.00417.39
8.3.180.0090.00916.39
8.3.170.0070.01118.86
8.3.160.0040.01117.31
8.3.150.0040.01217.16
8.3.140.0030.00716.47
8.3.130.0040.00418.61
8.3.120.0030.00618.79
8.3.110.0060.00318.32
8.3.100.0190.00318.55
8.3.90.0050.00318.52
8.3.80.0090.00018.55
8.3.70.0040.01118.43
8.3.60.0060.01618.27
8.3.50.0130.01017.57
8.3.40.0100.00718.65
8.3.30.0090.00618.66
8.3.20.0040.00421.94
8.3.10.0050.00221.73
8.3.00.0080.00021.79
8.2.290.0090.01020.38
8.2.280.0100.00918.34
8.2.270.0100.00718.81
8.2.260.0080.00018.73
8.2.250.0040.00416.57
8.2.240.0070.01417.08
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0090.00926.77
8.2.200.0070.00318.29
8.2.190.0160.00016.75
8.2.180.0110.00716.35
8.2.170.0090.00622.96
8.2.160.0100.00320.37
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00319.95
8.2.120.0040.00426.35
8.2.110.0040.00420.85
8.2.100.0040.00817.91
8.2.90.0000.00818.03
8.2.80.0040.00418.16
8.2.70.0030.00617.63
8.2.60.0000.00917.63
8.2.50.0030.00718.10
8.2.40.0040.00419.22
8.2.30.0000.00720.38
8.2.20.0040.00418.21
8.2.10.0070.00019.25
8.2.00.0040.00418.25
8.1.330.0100.00921.73
8.1.320.0100.01016.19
8.1.310.0170.00016.80
8.1.300.0100.01017.66
8.1.290.0060.00318.88
8.1.280.0090.00625.92
8.1.270.0060.00320.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.50
8.1.230.0030.00720.89
8.1.220.0060.00317.76
8.1.210.0070.00319.10
8.1.200.0040.00417.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0050.00318.40
8.1.160.0000.00818.97
8.1.150.0000.00718.78
8.1.140.0000.00718.96
8.1.130.0030.00517.53
8.1.120.0060.00317.37
8.1.110.0070.00017.51
8.1.100.0040.00417.46
8.1.90.0060.00317.50
8.1.80.0040.00417.43
8.1.70.0000.00717.53
8.1.60.0040.00417.50
8.1.50.0080.00017.51
8.1.40.0050.00317.54
8.1.30.0040.00417.65
8.1.20.0040.00417.68
8.1.10.0060.00317.64
8.1.00.0000.00817.55
8.0.300.0000.00719.98
8.0.290.0060.00316.63
8.0.280.0080.00018.34
8.0.270.0040.00417.14
8.0.260.0000.00716.91
8.0.250.0030.00617.08
8.0.240.0000.00716.93
8.0.230.0000.00716.94
8.0.220.0030.00316.94
8.0.210.0030.00316.92
8.0.200.0000.00816.96
8.0.190.0030.00517.01
8.0.180.0000.00717.01
8.0.170.0090.00016.91
8.0.160.0030.00817.07
8.0.150.0060.00316.82
8.0.140.0070.00016.98
8.0.130.0030.00313.35
8.0.120.0070.00016.89
8.0.110.0030.00517.04
8.0.100.0040.00416.90
8.0.90.0000.00717.00
8.0.80.0020.01416.95
8.0.70.0000.00716.82
8.0.60.0040.00416.80
8.0.50.0040.00416.79
8.0.30.0070.01417.25
8.0.20.0110.00817.11
8.0.10.0040.00417.04
8.0.00.0110.00716.65
7.4.330.0000.00516.82
7.4.320.0030.00316.66
7.4.300.0030.00316.60
7.4.290.0000.00716.49
7.4.280.0040.00416.52
7.4.270.0080.00316.54
7.4.260.0040.00416.59
7.4.250.0070.00016.59
7.4.240.0030.00316.59
7.4.230.0030.00316.64
7.4.220.0040.00416.55
7.4.210.0090.00716.63
7.4.200.0070.00016.71
7.4.160.0090.00816.59
7.4.130.0140.00316.73
7.4.120.0130.00616.55
7.4.110.0040.01416.64
7.4.100.0060.01216.60
7.4.90.0030.01416.61
7.4.80.0170.00019.39
7.4.70.0030.01516.59
7.4.60.0160.00416.60
7.4.50.0060.01216.30
7.4.40.0030.01316.56
7.4.00.0000.01715.05
7.3.330.0020.00213.38
7.3.320.0030.00313.30
7.3.310.0000.00816.42
7.3.300.0000.00616.24
7.3.290.0060.00916.37
7.3.280.0110.00816.36
7.3.260.0120.00716.44
7.3.240.0080.01116.42
7.3.230.0090.00616.61
7.3.210.0100.00716.35
7.3.200.0060.00916.35
7.3.190.0030.01316.51
7.3.180.0030.01416.36
7.3.170.0130.00316.53
7.3.160.0150.01516.45
7.3.40.0060.00714.56
7.3.30.0090.00914.47
7.3.20.0050.00916.76
7.3.10.0100.01316.72
7.3.00.0150.00616.39
7.2.330.0120.00616.64
7.2.320.0030.02216.53
7.2.310.0060.01216.46
7.2.300.0180.00316.50
7.2.290.0060.01216.57
7.2.170.0000.01414.97
7.2.160.0120.00615.00
7.2.150.0000.01416.70
7.2.140.0070.00716.80
7.2.130.0110.00316.76
7.2.120.0060.01316.61
7.2.110.0030.00916.86
7.2.100.0170.00016.70
7.2.90.0140.00316.72
7.2.80.0040.00816.87
7.2.70.0080.00416.98
7.2.60.0090.00617.04
7.2.50.0060.01617.02
7.2.40.0070.00716.86
7.2.30.0000.01416.52
7.2.20.0070.00717.02
7.2.10.0040.01016.79
7.2.00.0080.00616.83
7.1.280.0040.00815.61
7.1.270.0030.01515.74
7.1.260.0160.00715.79
7.1.250.0130.00315.66

preferences:
30.88 ms | 403 KiB | 5 Q