3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<'JSON' { "abc": 157, "efg": 1, "hij": "1", "klm": "0.00", "created_at": { "date": "2020-04-08 12:53:34.682759", "timezone_type": 3, "timezone": "UTC" }, "updated_at": { "date": "2020-04-08 12:53:34.682759", "timezone_type": 3, "timezone": "UTC" } } JSON; $arr = json_decode($json, true); function delete_key(&$arr, $key) { foreach($arr as $k => &$v) { if ( $k === $key ) { unset($arr[$k]); continue; } if ( is_array($v) ) { delete_key($v, $key); } } } delete_key($arr, 'date'); print_r(json_encode($arr, 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.20.0090.00617.72
8.4.10.0060.00317.59
8.3.150.0120.00918.45
8.3.140.0080.00017.17
8.3.130.0050.00318.59
8.3.120.0080.01119.12
8.3.110.0090.00016.88
8.3.100.0090.00024.06
8.3.90.0030.00726.77
8.3.80.0040.00416.88
8.3.70.0040.01116.75
8.3.60.0130.00316.50
8.3.50.0160.00324.38
8.3.40.0060.00919.26
8.3.30.0070.00718.83
8.3.20.0000.00721.73
8.3.10.0070.00021.80
8.3.00.0040.00421.86
8.2.270.0000.00719.23
8.2.260.0050.00316.63
8.2.250.0130.00318.37
8.2.240.0000.00718.97
8.2.230.0030.00620.94
8.2.220.0000.00937.54
8.2.210.0120.00326.77
8.2.200.0080.00016.50
8.2.190.0100.01016.75
8.2.180.0040.01125.92
8.2.170.0110.00418.78
8.2.160.0080.00622.96
8.2.150.0130.00625.66
8.2.140.0070.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0050.00522.13
8.2.100.0110.00017.91
8.2.90.0060.00317.88
8.2.80.0040.00418.78
8.2.70.0060.00318.03
8.2.60.0000.00818.16
8.2.50.0070.00019.30
8.2.40.0000.00821.02
8.2.30.0000.00719.19
8.2.20.0040.00418.05
8.2.10.0040.00419.27
8.2.00.0000.00719.29
8.1.310.0040.00418.41
8.1.300.0100.00018.38
8.1.290.0060.00318.88
8.1.280.0130.01025.92
8.1.270.0080.00022.15
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00323.77
8.1.230.0040.00717.77
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.24
8.1.180.0040.00418.77
8.1.170.0040.00418.64
8.1.160.0000.00719.09
8.1.150.0040.00418.80
8.1.140.0040.00418.90
8.1.130.0030.00320.14
8.1.120.0000.00717.45
8.1.110.0070.00017.44
8.1.100.0030.00517.42
8.1.90.0050.00217.33
8.1.80.0000.00717.50
8.1.70.0030.00417.43
8.1.60.0040.00417.54
8.1.50.0030.00617.53
8.1.40.0050.00317.50
8.1.30.0080.00017.51
8.1.20.0000.00717.70
8.1.10.0040.00417.38
8.1.00.0000.00817.32
8.0.300.0020.00518.77
8.0.290.0000.00816.88
8.0.280.0040.00218.35
8.0.270.0030.00316.88
8.0.260.0050.00320.08
8.0.250.0000.00716.94
8.0.240.0000.00717.04
8.0.230.0040.00416.95
8.0.220.0000.00716.96
8.0.210.0000.00616.86
8.0.200.0040.00417.02
8.0.190.0040.00416.93
8.0.180.0040.00416.98
8.0.170.0080.00017.01
8.0.160.0050.00216.98
8.0.150.0040.00416.91
8.0.140.0040.00416.91
8.0.130.0030.00313.34
8.0.120.0000.00816.94
8.0.110.0000.00716.93
8.0.100.0000.00716.95
8.0.90.0030.00617.02
8.0.80.0060.01316.91
8.0.70.0070.00017.06
8.0.60.0000.00716.76
8.0.50.0040.00416.97
8.0.30.0100.00717.06
8.0.20.0130.00817.32
8.0.10.0000.00716.96
8.0.00.0070.01116.84
7.4.330.0030.00315.55
7.4.320.0030.00316.41
7.4.300.0000.00616.63
7.4.290.0070.00016.53
7.4.280.0000.00716.45
7.4.270.0070.00316.61
7.4.260.0050.00013.25
7.4.250.0000.00716.39
7.4.240.0040.00316.59
7.4.230.0030.00316.30
7.4.220.0050.00216.42
7.4.210.0100.00716.52
7.4.200.0000.00716.67
7.4.130.0110.00816.53
7.4.120.0110.00716.55
7.4.110.0090.00916.62
7.4.100.0040.01216.43
7.4.40.0120.00516.46
7.4.30.0120.00516.40
7.4.20.0130.00316.47
7.4.10.0100.00616.52
7.4.00.0100.00616.44
7.3.330.0040.00416.43
7.3.320.0000.00613.38
7.3.310.0060.00016.33
7.3.300.0000.00716.31
7.3.290.0060.01016.40
7.3.280.0000.01416.39
7.3.260.0070.01416.36
7.3.240.0100.00716.54
7.3.230.0180.00416.41
7.3.160.0040.01416.58
7.3.150.0030.01416.61
7.3.140.0100.00716.52
7.3.130.0110.00516.31
7.3.120.0090.00616.29
7.3.110.0100.00716.41
7.3.100.0060.00916.53
7.3.90.0070.01016.56
7.3.80.0030.01216.40
7.3.70.0120.00316.25
7.3.60.0080.00816.31
7.3.50.0120.00416.27
7.3.40.0090.00616.21
7.3.30.0040.01216.41
7.3.20.0060.01116.38
7.3.10.0060.01216.38
7.3.00.0080.00816.25
7.2.290.0090.00616.59
7.2.280.0040.01216.37
7.2.270.0100.00616.44
7.2.260.0120.00616.37
7.2.250.0150.00316.61
7.2.240.0030.01316.64
7.2.230.0080.00816.76
7.2.220.0170.00316.38
7.2.210.0130.00316.57
7.2.200.0090.00616.52
7.2.190.0070.01016.49
7.2.180.0100.00616.43
7.2.170.0000.01616.50
7.2.160.0040.01116.58
7.2.150.0070.01016.48
7.2.140.0100.00716.50
7.2.130.0390.01316.59
7.2.120.0100.00716.58
7.2.110.0060.01016.47
7.2.100.0100.00716.43
7.2.90.0060.01216.58
7.2.80.0110.00616.69
7.2.70.0140.00416.66
7.2.60.0070.01016.66
7.2.50.0110.00916.58
7.2.40.0150.00316.67
7.2.30.0070.01016.52
7.2.20.0080.00816.59
7.2.10.0030.01316.59
7.2.00.0110.00816.61

preferences:
18.36 ms | 403 KiB | 5 Q