3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = '{ "1": { "name": "test", "followup": { "1": { "id": "98", "followup": { "1": { "id": "93", "followup": { "1": { "id": "174" } } } } } } } }'; $ids = array(); $data = json_decode($str, true); array_walk_recursive($data, function($v, $k) use (&$ids) { if ($k === 'id') { $ids[] = $v; } }); var_dump($ids);

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.30.0080.00919.23
8.5.20.0090.00819.52
8.5.10.0130.00416.56
8.5.00.0060.00720.19
8.4.180.0140.00919.61
8.4.170.0110.01123.99
8.4.160.0130.01123.12
8.4.150.0080.00516.91
8.4.140.0110.00917.61
8.4.130.0040.00517.78
8.4.120.0080.00920.69
8.4.110.0120.00822.27
8.4.100.0090.01217.61
8.4.90.0160.00520.45
8.4.80.0120.00819.02
8.4.70.0090.00318.91
8.4.60.0130.01018.76
8.4.50.0070.00517.95
8.4.40.0060.00917.63
8.4.30.0120.00317.71
8.4.20.0100.00017.73
8.4.10.0050.00517.55
8.3.300.0130.00620.82
8.3.290.0090.01020.71
8.3.280.0130.00718.41
8.3.270.0120.00716.25
8.3.260.0060.00216.75
8.3.250.0170.00218.87
8.3.240.0130.00617.32
8.3.230.0100.00816.63
8.3.220.0120.00619.11
8.3.210.0030.00418.66
8.3.200.0070.00216.60
8.3.190.0070.00117.32
8.3.180.0050.00518.01
8.3.170.0140.00419.05
8.3.160.0100.01016.53
8.3.150.0130.00620.64
8.3.140.0070.00316.58
8.3.130.0000.00818.57
8.3.120.0060.00320.67
8.3.110.0110.00020.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0030.00718.31
8.3.70.0180.00416.74
8.3.60.0060.00918.30
8.3.50.0120.00718.16
8.3.40.0110.00418.71
8.3.30.0110.00418.89
8.3.20.0000.00721.90
8.3.10.0080.00023.64
8.3.00.0000.00819.02
8.2.300.0110.00917.96
8.2.290.0080.00320.71
8.2.280.0020.00818.25
8.2.270.0120.00617.36
8.2.260.0100.00018.41
8.2.250.0070.00718.55
8.2.240.0040.00418.60
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0040.01526.77
8.2.200.0030.00616.63
8.2.190.0100.00716.63
8.2.180.0130.00618.41
8.2.170.0030.01222.96
8.2.160.0110.00322.06
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00319.95
8.2.120.0050.00226.35
8.2.110.0070.00422.15
8.2.100.0110.00017.82
8.2.90.0030.00518.34
8.2.80.0060.00318.16
8.2.70.0000.00818.16
8.2.60.0040.00418.09
8.2.50.0000.00918.16
8.2.40.0080.00020.63
8.2.30.0040.00419.43
8.2.20.0000.00918.04
8.2.10.0070.00018.17
8.2.00.0040.00418.00
8.1.340.0100.01017.69
8.1.330.0090.01021.92
8.1.320.0080.01316.09
8.1.310.0000.00816.98
8.1.300.0080.00818.61
8.1.290.0000.00930.84
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0080.00026.35
8.1.250.0080.00428.09
8.1.240.0100.00022.14
8.1.230.0110.00320.93
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0070.00417.35
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0040.00418.97
8.1.160.0030.00518.84
8.1.150.0000.00819.03
8.1.140.0000.00817.71
8.1.130.0070.00020.20
8.1.120.0000.00717.52
8.1.110.0020.00517.48
8.1.100.0060.00617.48
8.1.90.0060.00317.46
8.1.80.0020.00517.39
8.1.70.0040.00417.50
8.1.60.0030.00517.43
8.1.50.0030.00517.44
8.1.40.0040.00417.43
8.1.30.0040.00417.50
8.1.20.0000.00817.55
8.1.10.0000.01117.55
8.1.00.0030.00617.48
8.0.300.0040.00419.60
8.0.290.0050.00316.75
8.0.280.0040.00418.51
8.0.270.0030.00517.33
8.0.260.0060.00016.82
8.0.250.0040.00417.01
8.0.240.0060.00316.92
8.0.230.0030.00316.97
8.0.220.0000.00716.89
8.0.210.0000.00716.82
8.0.200.0040.00417.02
8.0.190.0000.00816.84
8.0.180.0030.00316.88
8.0.170.0060.00316.84
8.0.160.0040.00416.77
8.0.150.0040.00416.94
8.0.140.0050.00216.83
8.0.130.0000.00613.32
8.0.120.0040.00416.80
8.0.110.0040.00416.80
8.0.100.0050.00216.96
8.0.90.0030.00516.84
8.0.80.0030.01116.94
8.0.70.0040.00416.85
8.0.60.0000.00816.76
8.0.50.0040.00416.80
8.0.30.0090.01117.13
8.0.20.0120.00617.40
8.0.10.0070.00017.08
8.0.00.0090.00916.59
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0060.00016.51
7.4.290.0020.00516.44
7.4.280.0000.00816.59
7.4.270.0050.00216.53
7.4.260.0030.00316.52
7.4.250.0030.00316.52
7.4.240.0040.00416.64
7.4.230.0030.00316.58
7.4.220.0000.00716.68
7.4.210.0090.00516.57
7.4.200.0040.00416.68
7.4.160.0140.00416.46
7.4.140.0070.01217.86
7.4.130.0170.00316.56
7.4.120.0090.01016.54
7.4.110.0140.00316.54
7.4.100.0090.00616.48
7.4.90.0050.01216.44
7.4.80.0090.01519.39
7.4.70.0090.00916.61
7.4.60.0120.01216.60
7.4.50.0100.00016.51
7.4.40.0120.00616.47
7.4.10.0040.01114.85
7.4.00.0050.01115.07
7.3.330.0020.00213.33
7.3.320.0000.00513.37
7.3.310.0000.00716.27
7.3.300.0030.00316.24
7.3.290.0030.00316.37
7.3.280.0090.00816.35
7.3.260.0100.00916.33
7.3.240.0070.01116.41
7.3.230.0070.01016.21
7.3.210.0060.00916.55
7.3.200.0080.00816.41
7.3.190.0190.00316.31
7.3.180.0060.00916.23
7.3.170.0060.01016.67
7.3.160.0070.01016.57
7.3.130.0060.01214.85
7.3.120.0090.00714.69
7.3.110.0060.01114.82
7.3.100.0050.00914.67
7.3.90.0050.00914.99
7.3.80.0030.00814.86
7.3.70.0050.00714.76
7.3.60.0110.00514.87
7.3.50.0050.00514.70
7.3.40.0060.00714.72
7.3.30.0070.00814.77
7.3.20.0090.00716.85
7.3.10.0080.00316.43
7.3.00.0040.01116.57
7.2.330.0090.01516.64
7.2.320.0040.01216.66
7.2.310.0110.00516.64
7.2.300.0070.01016.50
7.2.290.0090.00916.64
7.2.260.0070.01014.95
7.2.250.0110.00815.16
7.2.240.0090.00714.77
7.2.230.0030.01115.06
7.2.220.0070.01014.96
7.2.210.0050.00715.02
7.2.200.0070.00814.97
7.2.190.0080.00615.03
7.2.180.0040.00714.88
7.2.170.0050.00915.02
7.2.160.0040.01414.94
7.2.150.0070.01016.54
7.2.140.0030.00616.88
7.2.130.0110.00017.14
7.2.120.0030.00616.92
7.2.110.0060.00317.08
7.2.100.0060.00916.82
7.2.90.0130.00616.91
7.2.80.0060.01317.11
7.2.70.0060.00916.95
7.2.60.0060.00717.02
7.2.50.0040.01416.68
7.2.40.0260.00917.40
7.2.30.0120.01317.66
7.2.20.0210.01217.60
7.2.10.0260.01017.63
7.2.00.0170.00917.43
7.1.330.0030.00915.74
7.1.320.0040.00915.84
7.1.310.0110.00315.63
7.1.300.0080.00615.94
7.1.290.0040.00715.93
7.1.280.0040.01015.75
7.1.270.0060.00615.91
7.1.260.0040.00715.86
7.1.250.0070.00715.96
7.1.240.0000.00815.56
7.1.230.0030.01015.59
7.1.220.0040.00515.83
7.1.210.0040.00815.75
7.1.200.0080.00815.73
7.1.190.0030.00615.71
7.1.180.0030.01315.76
7.1.170.0030.01315.86
7.1.160.0190.01016.58
7.1.150.0230.01016.49
7.1.140.0180.00916.52
7.1.130.0260.01016.42
7.1.120.0250.00716.62
7.1.110.0170.01116.17
7.1.100.0280.00916.10
7.1.90.0440.01015.99
7.1.80.0210.01016.12
7.1.70.0250.01015.47
7.1.60.0320.01127.45
7.1.50.0300.01627.33
7.1.40.0370.01626.99
7.1.30.0360.01127.01
7.1.20.0350.01727.06
7.1.10.0170.01215.00
7.1.00.0270.01015.14
7.0.330.0070.00715.24
7.0.320.0070.00715.44
7.0.310.0090.00615.41
7.0.300.0060.01015.11
7.0.290.0040.00815.50
7.0.280.0110.00415.32
7.0.270.0070.00315.13
7.0.260.0000.01415.21
7.0.250.0040.00415.35
7.0.240.0070.00415.24
7.0.230.0030.01015.18
7.0.220.0140.00015.08
7.0.210.0100.00315.35
7.0.200.0030.00615.39
7.0.190.0060.00615.45
7.0.180.0000.00915.32
7.0.170.0030.00915.41
7.0.160.0120.00315.21
7.0.150.0030.01115.17
7.0.140.0000.01515.46
7.0.130.0030.00715.54
7.0.120.0030.00615.65
7.0.110.0000.01115.23
7.0.100.0040.00715.22
7.0.90.0100.00715.26
7.0.80.0000.01015.59
7.0.70.0050.00515.54
7.0.60.0050.00615.33
7.0.50.0110.00015.48
7.0.40.0030.00913.59
7.0.30.0040.00413.57
7.0.20.0050.00313.59
7.0.10.0090.00313.64
7.0.00.0030.01013.20
5.6.400.0060.00914.28
5.6.390.0060.00313.95
5.6.380.0100.01014.71
5.6.370.0000.01214.39
5.6.360.0070.00714.38
5.6.350.0070.01014.05
5.6.340.0030.00614.28
5.6.330.0030.00914.43
5.6.320.0060.00614.31
5.6.310.0060.00614.13
5.6.300.0030.00914.18
5.6.290.0070.00714.31
5.6.280.0000.01514.38
5.6.270.0080.00314.53
5.6.260.0030.01014.49
5.6.250.0080.00814.36
5.6.240.0090.00614.48
5.6.230.0030.01014.45
5.6.220.0070.00314.22
5.6.210.0070.00714.39
5.6.200.0030.01014.31
5.6.190.0030.00614.48
5.6.180.0070.00414.26
5.6.170.0060.00914.31
5.6.160.0120.00314.29
5.6.150.0090.00614.32
5.6.140.0090.00614.32
5.6.130.0060.00614.13
5.6.120.0070.00414.43
5.6.110.0090.00014.24
5.6.100.0000.01214.29
5.6.90.0030.01014.32
5.6.80.0000.01314.27
5.6.70.0040.00813.95
5.6.60.0040.00714.31
5.6.50.0000.01014.07
5.6.40.0040.00714.42
5.6.30.0040.00414.21
5.6.20.0060.00914.23
5.6.10.0070.00714.22
5.6.00.0030.01014.15

preferences:
105.14 ms | 1949 KiB | 5 Q