3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[ { "name": "Top Level", "parent": "null", "children": [ { "name": "Level 2: A", "parent": "Top Level", "children": [ { "name": "Son of A", "parent": "Level 2: A" }, { "name": "Daughter of A", "parent": "Level 2: A" } ] }, { "name": "Level 2: B", "parent": "Top Level", "children": [ { "name": "Son of B", "parent": "Level 2: B" }, { "name": "Daughter of B", "parent": "Level 2:B" } ] } ] } ]'; print_r(json_decode($str, true));

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.3.60.0140.00318.06
8.3.50.0140.00821.92
8.3.40.0090.00618.42
8.3.30.0130.00318.77
8.3.20.0040.00418.59
8.3.10.0000.00721.10
8.3.00.0040.00419.56
8.2.180.0160.00016.36
8.2.170.0100.01022.96
8.2.160.0130.00720.40
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0020.00520.87
8.2.110.0070.00320.98
8.2.100.0040.00817.50
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0000.00818.10
8.2.30.0000.00721.23
8.2.20.0040.00417.52
8.2.10.0050.00317.68
8.2.00.0000.00917.50
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0070.01026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.73
8.1.230.0090.00317.42
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0030.00517.22
8.1.180.0020.00518.10
8.1.170.0030.00520.29
8.1.160.0000.00822.00
8.1.150.0040.00418.52
8.1.140.0040.00417.39
8.1.130.0030.00317.79
8.1.120.0050.00317.41
8.1.110.0000.00717.35
8.1.100.0000.00717.46
8.1.90.0040.00417.43
8.1.80.0000.00817.44
8.1.70.0000.00717.38
8.1.60.0100.00017.56
8.1.50.0000.00717.37
8.1.40.0040.00417.49
8.1.30.0050.00317.58
8.1.20.0080.00017.63
8.1.10.0000.00717.35
8.1.00.0000.00717.31
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0030.00518.39
8.0.270.0030.00317.21
8.0.260.0000.00616.82
8.0.250.0030.00516.88
8.0.240.0040.00416.78
8.0.230.0030.00316.93
8.0.220.0070.00016.79
8.0.210.0040.00416.83
8.0.200.0030.00316.83
8.0.190.0000.00716.94
8.0.180.0000.00716.83
8.0.170.0000.00716.71
8.0.160.0030.00616.80
8.0.150.0030.00316.66
8.0.140.0040.00416.73
8.0.130.0060.00013.27
8.0.120.0030.00616.91
8.0.110.0030.00516.79
8.0.100.0030.00316.70
8.0.90.0000.00816.81
8.0.80.0090.01516.81
8.0.70.0030.00416.73
8.0.60.0040.00416.77
8.0.50.0080.00016.68
8.0.30.0090.00917.08
8.0.20.0140.00617.40
8.0.10.0000.00717.02
8.0.00.0090.01016.86
7.4.330.0030.00316.79
7.4.320.0030.00316.46
7.4.300.0000.00716.51
7.4.290.0040.00416.51
7.4.280.0000.00816.29
7.4.270.0070.00016.52
7.4.260.0060.00013.21
7.4.250.0030.00616.50
7.4.240.0000.00716.45
7.4.230.0000.00716.48
7.4.220.0080.01116.31
7.4.210.0080.00916.56
7.4.200.0070.00016.49
7.4.190.0030.00316.35
7.4.160.0100.01016.52
7.4.150.0090.00917.40
7.4.140.0030.01617.86
7.4.130.0110.00616.50
7.4.120.0080.01116.43
7.4.110.0120.00616.39
7.4.100.0120.00916.43
7.4.90.0130.00316.41
7.4.80.0060.01219.39
7.4.70.0060.01116.30
7.4.60.0090.00916.56
7.4.50.0030.00316.18
7.4.40.0080.00422.77
7.4.30.0100.01016.41
7.4.00.0080.00914.88
7.3.330.0020.00212.84
7.3.320.0030.00312.84
7.3.310.0030.00315.96
7.3.300.0000.00716.14
7.3.290.0070.00716.25
7.3.280.0090.00816.20
7.3.270.0140.01017.40
7.3.260.0120.00718.24
7.3.250.0120.00516.38
7.3.240.0130.00916.18
7.3.230.0130.00316.39
7.3.210.0150.00716.20
7.3.200.0140.00719.39
7.3.190.0090.00916.56
7.3.180.0060.00916.51
7.3.170.0130.00316.27
7.3.160.0060.00916.23
7.3.120.0080.00814.92
7.3.110.0000.01314.65
7.3.100.0130.00314.59
7.3.90.0030.00714.88
7.3.80.0000.01714.88
7.3.70.0090.00614.78
7.3.60.0140.00014.56
7.3.50.0070.00714.36
7.3.40.0070.00714.38
7.3.30.0080.00614.78
7.3.20.0000.01416.48
7.3.10.0040.00916.54
7.3.00.0030.01116.52
7.2.330.0100.00716.58
7.2.320.0080.01716.45
7.2.310.0060.01216.19
7.2.300.0160.01216.45
7.2.290.0060.01116.68
7.2.250.0060.01214.89
7.2.240.0120.00914.94
7.2.230.0090.00614.73
7.2.220.0080.00314.77
7.2.210.0030.01314.85
7.2.200.0090.00914.70
7.2.190.0060.00914.89
7.2.180.0100.00714.89
7.2.170.0040.00814.93
7.2.130.0000.01216.66
7.2.120.0090.00616.73
7.2.110.0040.00816.81
7.2.100.0090.00016.68
7.2.90.0110.00416.66
7.2.80.0050.00516.79
7.2.70.0060.00616.68
7.2.60.0090.00616.60
7.2.50.0100.00716.62
7.2.40.0000.01116.57
7.2.30.0130.00316.94
7.2.20.0000.01216.75
7.2.10.0040.00816.59
7.2.00.0060.00316.76
7.1.330.0080.00415.86
7.1.320.0060.00615.57
7.1.310.0030.01315.66
7.1.300.0060.00915.43
7.1.290.0070.00715.85
7.1.280.0040.01215.54
7.1.270.0030.01415.73
7.1.260.0030.00615.54
7.1.250.0070.00415.76
7.1.100.0070.00718.18
7.1.70.0030.00617.17
7.1.60.0030.00717.19
7.1.50.0030.00716.98
7.1.40.0070.00716.73
7.1.30.0000.01116.62
7.1.20.0060.00616.52
7.1.10.0040.00416.63
7.1.00.0000.01216.71
7.0.200.0000.00716.39
7.0.190.0050.00216.61
7.0.180.0060.00616.27
7.0.170.0070.00316.24
7.0.160.0030.00716.26
7.0.150.0060.01316.19
7.0.140.0040.00416.24
7.0.130.0070.00716.46
7.0.120.0040.01916.38
7.0.110.0040.00716.29
7.0.100.0040.00716.41
7.0.90.0040.00716.13
7.0.80.0070.00416.20
7.0.70.0030.00516.21
7.0.60.0000.01116.20
7.0.50.0040.00416.32
7.0.40.0040.00815.00
7.0.30.0000.01015.00
7.0.20.0020.00515.00
7.0.10.0030.00615.00
7.0.00.0070.01015.00
5.6.300.0100.05520.67
5.6.290.0030.09220.91
5.6.280.0030.04420.94
5.6.270.0070.05621.02
5.6.260.0030.09921.01
5.6.250.0070.04120.89
5.6.240.0200.03320.97
5.6.230.0130.03420.79
5.6.220.0070.04320.95
5.6.210.0030.04421.00
5.6.200.0030.04520.75
5.6.190.0030.04620.81
5.6.180.0000.04321.02
5.6.170.0070.04220.92
5.6.160.0100.03920.81
5.6.150.0070.05620.72
5.6.140.0030.05520.97
5.6.130.0000.04620.78
5.6.120.0070.03720.82
5.6.110.0070.03821.03
5.6.100.0070.09221.00
5.6.90.0070.04320.96
5.6.80.0030.04320.21
5.6.70.0030.03920.29
5.6.60.0100.05720.41
5.6.50.0030.04220.31
5.6.40.0000.04720.40
5.6.30.0100.03720.07
5.6.20.0070.08620.37
5.6.10.0070.03620.28
5.6.00.0030.04920.38
5.5.380.0030.04417.49
5.5.370.0070.04017.53
5.5.360.0060.05117.52
5.5.350.0030.05417.45
5.5.340.0070.04318.01
5.5.330.0070.04118.09
5.5.320.0040.03918.04
5.5.310.0060.04117.70
5.5.300.0100.04317.86
5.5.290.0000.04418.01
5.5.280.0070.03618.09
5.5.270.0030.04018.00
5.5.260.0070.05018.02
5.5.250.0030.05117.55
5.5.240.0030.04017.25
5.5.230.0060.03817.55
5.5.220.0100.03017.23
5.5.210.0070.04917.43
5.5.200.0100.03617.36
5.5.190.0060.04917.48
5.5.180.0000.05117.21
5.5.160.0000.04317.44
5.5.150.0030.03717.52
5.5.140.0070.03717.38
5.5.130.0030.03717.18
5.5.120.0060.03517.44
5.5.110.0070.07217.34
5.5.100.0070.04017.22
5.5.90.0070.05117.29
5.5.80.0390.02917.26
5.5.70.0100.03817.10
5.5.60.0130.03317.07
5.5.50.0030.04417.30
5.5.40.0060.04116.98
5.5.30.0100.03917.32
5.5.20.0160.03216.98
5.5.10.0030.04517.38
5.5.00.0070.03817.41
5.4.450.0070.04019.27
5.4.440.0000.04419.36
5.4.430.0100.06919.47
5.4.420.0070.03619.33
5.4.410.0070.04019.23
5.4.400.0070.03719.04
5.4.390.0030.04018.87
5.4.380.0070.03619.12
5.4.370.0030.04018.93
5.4.360.0030.04918.92
5.4.350.0070.03818.86
5.4.340.0000.04618.94
5.4.320.0070.03918.98
5.4.310.0030.04119.06
5.4.300.0000.04819.15
5.4.290.0030.04319.02
5.4.280.0000.04418.92
5.4.270.0000.06519.00
5.4.260.0070.07719.05
5.4.250.0030.04319.07
5.4.240.0030.05619.02
5.4.230.0030.04319.00
5.4.220.0030.05118.86
5.4.210.0190.04819.02
5.4.200.0000.04918.92
5.4.190.0000.04518.83
5.4.180.0070.04018.88
5.4.170.0070.04018.98
5.4.160.0070.04519.13
5.4.150.0030.04519.01
5.4.140.0030.04016.69
5.4.130.0160.02616.42
5.4.120.0030.03916.75
5.4.110.0090.03616.73
5.4.100.0060.03616.58
5.4.90.0040.04016.43
5.4.80.0070.03416.41
5.4.70.0070.04616.68
5.4.60.0070.03616.55
5.4.50.0030.04016.54
5.4.40.0070.03516.68
5.4.30.0030.03516.40
5.4.20.0200.04416.54
5.4.10.0260.03016.65
5.4.00.0000.03915.98
5.3.290.0000.04015.00
5.3.280.0100.03915.00
5.3.270.0200.02515.00
5.3.260.0140.04115.00
5.3.250.0000.04215.00
5.3.240.0000.04715.00
5.3.230.0030.04415.00
5.3.220.0150.03015.00
5.3.210.0110.03515.00
5.3.200.0090.03415.00
5.3.190.0040.04215.00
5.3.180.0100.03815.00
5.3.170.0140.03715.00
5.3.160.0300.03315.00
5.3.150.0030.04015.00
5.3.140.0070.03615.00
5.3.130.0100.03515.00
5.3.120.0060.03515.00
5.3.110.0070.03815.00
5.3.100.0070.03615.00
5.3.90.0070.07415.00
5.3.80.0070.03615.00
5.3.70.0070.03315.00
5.3.60.0070.03315.00
5.3.50.0060.04215.00
5.3.40.0040.03915.00
5.3.30.0030.04115.00
5.3.20.0070.03815.00
5.3.10.0030.03715.00
5.3.00.0000.04615.00
5.2.170.0000.03215.00
5.2.160.0000.03215.00
5.2.150.0030.03415.00
5.2.140.0060.02615.00
5.2.130.0070.06515.00
5.2.120.0070.03015.00
5.2.110.0030.03715.00
5.2.100.0000.03815.00
5.2.90.0140.03415.00
5.2.80.0030.02915.00
5.2.70.0060.02815.02
5.2.60.0000.03415.04
5.2.50.0030.03115.04
5.2.40.0030.03315.04
5.2.30.0030.03015.04
5.2.20.0030.02915.04
5.2.10.0030.03315.04
5.2.00.0030.03015.04
5.1.60.0030.02215.04
5.1.50.0030.03115.04
5.1.40.0000.04015.04
5.1.30.0030.05415.04
5.1.20.0100.05015.04
5.1.10.0030.02515.04
5.1.00.0000.02615.04
5.0.50.0060.01615.04
5.0.40.0030.01715.04
5.0.30.0030.05915.04
5.0.20.0030.02015.04
5.0.10.0000.02415.04
5.0.00.0060.02815.04
4.4.90.0030.01915.04
4.4.80.0000.01815.04
4.4.70.0040.01815.04
4.4.60.0030.01515.04
4.4.50.0030.01415.04
4.4.40.0030.02815.04
4.4.30.0030.01515.04
4.4.20.0030.02215.04
4.4.10.0000.04315.04
4.4.00.0000.03015.04
4.3.110.0060.01615.04
4.3.100.0070.01315.04
4.3.90.0000.01815.04
4.3.80.0030.02315.04
4.3.70.0000.01615.04
4.3.60.0000.01615.04
4.3.50.0030.02015.04
4.3.40.0060.02215.04
4.3.30.0000.01915.04
4.3.20.0030.01515.04
4.3.10.0030.02315.04
4.3.00.0030.01915.04

preferences:
40.37 ms | 401 KiB | 5 Q