3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonstr = ' { "child": { "": { "rss": [{ "data": "\n \n", "attribs": { "": { "version": "2.0" } }, "xml_base": "", "xml_base_explicit": false, "xml_lang": "", "child": { "": { "channel": [{ "data": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ", "attribs": [], "xml_base": "", "xml_base_explicit": false, "xml_lang": "", "child": { "": { "title": [{ "data": "Data name", "attribs": [], "xml_base": "", "xml_base_explicit": false, "xml_lang": "" }] } } }] } } }] } } }'; $json = json_decode($jsonstr, true); print_r($json['child']['']['rss'][0]['child']['']['channel'][0]['child']['']['title']); $json = json_decode($jsonstr); print_r($json->child->{''}->rss[0]->child->{''}->channel[0]->child->{''}->title);

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.120.0060.00324.17
8.4.110.0060.00320.59
8.4.100.0110.01019.27
8.4.90.0130.00818.39
8.4.80.0070.00317.73
8.4.70.0110.00318.14
8.4.60.0140.00518.72
8.4.50.0120.01017.75
8.4.40.0070.01120.26
8.4.30.0140.00717.57
8.4.20.0080.01220.14
8.4.10.0090.00019.00
8.3.250.0140.00418.68
8.3.240.0100.00917.11
8.3.230.0130.00716.40
8.3.220.0050.00216.99
8.3.210.0070.01116.76
8.3.200.0050.00516.45
8.3.190.0160.00616.99
8.3.180.0120.00816.88
8.3.170.0120.00616.75
8.3.160.0120.00616.42
8.3.150.0120.00318.82
8.3.140.0150.00318.93
8.3.130.0080.00016.55
8.3.120.0030.00619.10
8.3.110.0070.00420.94
8.3.100.0030.00516.50
8.3.90.0120.00626.77
8.3.80.0100.00019.36
8.3.70.0160.01016.63
8.3.60.0100.01018.53
8.3.50.0130.00518.11
8.3.40.0070.01618.67
8.3.30.0120.00418.71
8.3.20.0070.00021.85
8.3.10.0060.00323.53
8.3.00.0080.00021.69
8.2.290.0100.00920.59
8.2.280.0110.00518.36
8.2.270.0120.00619.25
8.2.260.0000.00918.88
8.2.250.0050.00316.70
8.2.240.0090.00619.19
8.2.230.0080.00022.58
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0100.01016.58
8.2.180.0150.00316.50
8.2.170.0040.01122.96
8.2.160.0030.01018.91
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00421.07
8.2.110.0030.00621.00
8.2.100.0090.00317.72
8.2.90.0000.00917.75
8.2.80.0000.00818.73
8.2.70.0040.00417.63
8.2.60.0040.00417.63
8.2.50.0050.00317.55
8.2.40.0000.00820.00
8.2.30.0040.00418.01
8.2.20.0070.00018.10
8.2.10.0070.00018.21
8.2.00.0040.00419.36
8.1.330.0090.01021.79
8.1.320.0120.00816.49
8.1.310.0150.00416.69
8.1.300.0040.00420.32
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00319.28
8.1.230.0040.00720.88
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0050.00317.36
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0040.00418.43
8.1.160.0080.00018.84
8.1.150.0030.00518.82
8.1.140.0070.00022.21
8.1.130.0030.00620.02
8.1.120.0000.00717.35
8.1.110.0070.00017.32
8.1.100.0050.00217.41
8.1.90.0030.00517.47
8.1.80.0000.00817.31
8.1.70.0000.00717.43
8.1.60.0000.00817.38
8.1.50.0000.00817.41
8.1.40.0060.00317.49
8.1.30.0030.00617.47
8.1.20.0000.00817.51
8.1.10.0040.00417.51
8.1.00.0040.00417.40
8.0.300.0000.00818.77
8.0.290.0050.00316.63
8.0.280.0060.00318.36
8.0.270.0030.00416.70
8.0.260.0030.00620.09
8.0.250.0000.00716.82
8.0.240.0000.00616.82
8.0.230.0040.00416.96
8.0.220.0030.00516.75
8.0.210.0000.00716.88
8.0.200.0000.00616.91
8.0.190.0000.01116.91
8.0.180.0040.00416.80
8.0.170.0050.00316.88
8.0.160.0040.00416.75
8.0.150.0000.00716.89
8.0.140.0000.00716.73
8.0.130.0060.00013.27
8.0.120.0030.00516.80
8.0.110.0000.00816.85
8.0.100.0040.00416.77
8.0.90.0000.00716.88
8.0.80.0140.00516.83
8.0.70.0040.00416.77
8.0.60.0060.00316.86
8.0.50.0000.00716.89
8.0.30.0030.01617.20
8.0.20.0130.00617.40
8.0.10.0000.00716.92
8.0.00.0130.00816.86
7.4.330.0000.00516.83
7.4.320.0000.00616.53
7.4.300.0030.00316.47
7.4.290.0000.00716.62
7.4.280.0050.00316.41
7.4.270.0030.00316.48
7.4.260.0030.00316.51
7.4.250.0000.00716.50
7.4.240.0070.00016.62
7.4.230.0040.00416.65
7.4.220.0050.00316.37
7.4.210.0110.00516.52
7.4.200.0030.00316.63
7.4.160.0090.00816.53
7.4.140.0090.01117.86
7.4.130.0120.00616.59
7.4.120.0090.01116.54
7.4.110.0160.01916.57
7.4.100.0150.00916.39
7.4.90.0110.00816.70
7.4.80.0160.00519.39
7.4.70.0100.00716.41
7.4.60.0000.01516.51
7.4.50.0030.01016.66
7.4.40.0060.01016.51
7.4.00.0060.00815.12
7.3.330.0020.00213.00
7.3.320.0030.00312.98
7.3.310.0040.00416.30
7.3.300.0070.00016.08
7.3.290.0040.00416.28
7.3.280.0140.00616.29
7.3.260.0090.01116.44
7.3.240.0120.00816.31
7.3.230.0110.00716.41
7.3.210.0100.00716.29
7.3.200.0180.00416.43
7.3.190.0110.00716.48
7.3.180.0110.00716.30
7.3.170.0130.00716.50
7.3.160.0100.01016.27
7.2.330.0080.01216.58
7.2.320.0130.00616.68
7.2.310.0090.00616.61
7.2.300.0060.00916.69
7.2.290.0090.00616.67
7.2.120.0360.00014.66
7.2.110.0430.01014.59
7.2.100.0540.00614.70
7.2.90.0380.01014.49
7.2.80.1590.01014.70
7.2.70.0480.00615.05
7.2.60.0520.00615.11
7.2.50.0470.01315.06
7.2.40.0490.01314.99
7.2.30.0470.01314.90
7.2.20.0530.01014.68
7.2.10.0440.01014.94
7.2.00.0420.01014.98
5.6.380.0100.00714.05

preferences:
110.54 ms | 403 KiB | 5 Q