3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="utf-8"?> <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> <channel> <title>werwer</title> <link>werwerwe</link> <item> <g:id>704667</g:id> <title>Nike</title> <description>erterterter</description> </item> <item> <g:id>4456456</g:id> <title>Nike</title> <description>erterterter</description> </item> </channel></rss>'; $xml = simplexml_load_string($xml); $ns = $xml->getNamespaces(true); foreach ($xml->channel->item as $item) { echo $item->children($ns['g'])->id.PHP_EOL; }

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.0130.00817.83
8.4.130.0090.01118.06
8.4.120.0110.00820.56
8.4.110.0040.00422.73
8.4.100.0140.00717.90
8.4.90.0110.00918.80
8.4.80.0060.00318.05
8.4.70.0160.00717.98
8.4.60.0110.00518.73
8.4.50.0100.00922.64
8.4.40.0100.01019.81
8.4.30.0030.00617.82
8.4.20.0160.00319.75
8.4.10.0060.00319.68
8.3.270.0100.01016.59
8.3.260.0120.00516.84
8.3.250.0110.00719.23
8.3.240.0050.00416.79
8.3.230.0150.00516.94
8.3.220.0070.00119.31
8.3.210.0130.00516.98
8.3.200.0030.00616.96
8.3.190.0110.00816.77
8.3.180.0070.00716.85
8.3.170.0110.00717.50
8.3.160.0090.00616.77
8.3.150.0160.00320.98
8.3.140.0060.00319.06
8.3.130.0080.00017.00
8.3.120.0140.00421.11
8.3.110.0040.00420.94
8.3.100.0080.00816.75
8.3.90.0100.00618.55
8.3.80.0000.01018.81
8.3.70.0120.00618.81
8.3.60.0090.01218.56
8.3.50.0100.00318.39
8.3.40.0150.00619.14
8.3.30.0090.00618.97
8.3.20.0070.00020.54
8.3.10.0040.00418.97
8.3.00.0040.00422.15
8.2.290.0050.00320.75
8.2.280.0020.00618.68
8.2.270.0070.01117.34
8.2.260.0030.00516.95
8.2.250.0050.00316.79
8.2.240.0000.00817.59
8.2.230.0100.00022.58
8.2.220.0100.01024.06
8.2.210.0090.00626.77
8.2.200.0030.00618.58
8.2.190.0150.00616.58
8.2.180.0140.00716.75
8.2.170.0060.01322.96
8.2.160.0040.01120.46
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00020.08
8.2.110.0030.00619.46
8.2.100.0090.00318.16
8.2.90.0050.00319.66
8.2.80.0080.00017.97
8.2.70.0050.00317.88
8.2.60.0040.00418.18
8.2.50.0000.00818.47
8.2.40.0040.00420.84
8.2.30.0060.00319.52
8.2.20.0040.00418.29
8.2.10.0050.00318.25
8.2.00.0070.00018.24
8.1.330.0110.00922.44
8.1.320.0070.01316.43
8.1.310.0000.00817.06
8.1.300.0050.00318.01
8.1.290.0040.00418.88
8.1.280.0120.00625.92
8.1.270.0080.00022.37
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00324.17
8.1.230.0080.00317.96
8.1.220.0030.00617.89
8.1.210.0030.00518.77
8.1.200.0060.00317.47
8.1.190.0040.00417.48
8.1.180.0050.00318.10
8.1.170.0080.00018.84
8.1.160.0070.00019.09
8.1.150.0040.00420.41
8.1.140.0000.00719.26
8.1.130.0000.00817.58
8.1.120.0000.01017.50
8.1.110.0000.00717.59
8.1.100.0030.00517.69
8.1.90.0040.00417.68
8.1.80.0040.00417.55
8.1.70.0040.00417.73
8.1.60.0030.00517.69
8.1.50.0080.00017.75
8.1.40.0000.00717.74
8.1.30.0050.00317.70
8.1.20.0030.00617.73
8.1.10.0040.00417.69
8.1.00.0030.00617.61
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0070.00018.60
8.0.270.0000.00717.57
8.0.260.0070.00016.91
8.0.250.0070.00017.04
8.0.240.0000.00717.05
8.0.230.0030.00317.06
8.0.220.0040.00417.12
8.0.210.0040.00417.00
8.0.200.0070.00017.04
8.0.190.0050.00317.12
8.0.180.0040.00416.99
8.0.170.0000.00817.16
8.0.160.0040.00417.16
8.0.150.0040.00416.99
8.0.140.0030.00317.09
8.0.130.0080.00013.48
8.0.120.0000.00717.16
8.0.110.0000.00817.05
8.0.100.0040.00417.03
8.0.90.0070.00016.85
8.0.80.0070.01017.06
8.0.70.0060.00317.17
8.0.60.0040.00417.05
8.0.50.0050.00216.97
8.0.30.0120.00717.35
8.0.20.0120.00717.43
8.0.10.0020.00517.12
8.0.00.0160.00916.87
7.4.330.0050.00015.55
7.4.320.0000.00716.80
7.4.300.0000.00616.72
7.4.290.0000.00816.70
7.4.280.0040.00716.71
7.4.270.0000.00716.68
7.4.260.0040.00416.89
7.4.250.0050.00516.64
7.4.240.0030.00316.74
7.4.230.0000.00716.80
7.4.220.0080.00916.72
7.4.210.0050.00916.77
7.4.200.0040.00416.82
7.4.160.0120.00416.89
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0130.00516.64
7.4.120.0110.01016.66
7.4.110.0070.01016.66
7.4.100.0150.00816.79
7.4.90.0100.00716.80
7.4.80.0130.00319.39
7.4.70.0130.01016.87
7.4.60.0070.01316.60
7.4.50.0060.01216.55
7.4.40.0170.00016.39
7.4.30.0150.00316.77
7.4.00.0060.00915.08
7.3.330.0050.00013.19
7.3.320.0000.00513.37
7.3.310.0060.00016.41
7.3.300.0000.00716.44
7.3.290.0030.00316.54
7.3.280.0090.00616.52
7.3.270.0110.00717.40
7.3.260.0110.00616.66
7.3.250.0070.01316.49
7.3.240.0070.01216.66
7.3.230.0130.00916.54
7.3.210.0150.00416.46
7.3.200.0140.00416.79
7.3.190.0080.00816.76
7.3.180.0080.00816.33
7.3.170.0030.01316.72
7.3.160.0120.00416.62
7.3.120.0040.01115.02
7.3.110.0060.01014.81
7.3.100.0040.00714.73
7.3.90.0000.00914.75
7.3.80.0030.01015.16
7.3.70.0000.01414.95
7.3.60.0040.01114.84
7.3.50.0000.01414.85
7.3.40.0090.00014.92
7.3.30.0040.00814.82
7.3.20.0000.01416.70
7.3.10.0140.00316.58
7.3.00.0030.01316.84
7.2.330.0120.00616.97
7.2.320.0120.00616.98
7.2.310.0170.00316.96
7.2.300.0050.01916.69
7.2.290.0000.01716.91
7.2.240.0110.00315.36
7.2.230.0030.00715.45
7.2.220.0110.00315.26
7.2.210.0120.00415.03
7.2.200.0040.01115.24
7.2.190.0030.01214.80
7.2.180.0090.00615.25
7.2.170.0070.00715.17
7.2.160.0130.00315.15
7.2.150.0110.00417.06
7.2.140.0000.01416.98
7.2.130.0000.01716.78
7.2.120.0070.00717.03
7.2.110.0130.00316.98
7.2.100.0040.00816.89
7.2.90.0070.01016.98
7.2.80.0080.00317.09
7.2.70.0090.00617.15
7.2.60.0000.01117.22
7.2.50.0090.00917.09
7.2.40.0060.00317.03
7.2.30.0040.01117.05
7.2.20.0040.00817.13
7.2.10.0080.00417.12
7.2.00.0050.01018.47
7.1.330.0060.00916.13
7.1.320.0060.00615.62
7.1.310.0090.00615.84
7.1.300.0030.00615.80
7.1.290.0110.00415.99
7.1.280.0070.01015.82
7.1.270.0000.01615.98
7.1.260.0000.01416.07
7.1.250.0070.00415.89
7.1.200.0030.01015.71
7.1.120.0070.00318.40
7.1.110.0030.01316.61
7.1.100.0000.01318.14
7.1.90.0030.00618.32
7.1.80.0080.00418.04
7.1.70.0000.01017.26
7.1.60.0160.00635.23
7.1.50.0090.01334.89
7.1.40.0060.01634.59
7.1.30.0180.00634.44
7.1.20.0190.00334.65
7.1.10.0030.00616.79
7.1.00.0040.00716.84

preferences:
40.99 ms | 403 KiB | 5 Q