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); foreach ($xml->channel->item as $item) { echo $item->id.' - '.$item->title.' - '.$item->description.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.5.10.0090.00816.86
8.5.00.0120.00920.09
8.4.150.0030.00014.05
8.4.140.0090.01317.61
8.4.130.0160.00619.45
8.4.120.0050.00520.76
8.4.110.0120.00818.80
8.4.100.0130.00718.93
8.4.90.0140.00620.72
8.4.80.0120.00719.06
8.4.70.0120.00819.09
8.4.60.0080.01219.18
8.4.50.0040.00517.81
8.4.40.0170.00319.55
8.4.30.0130.00718.00
8.4.20.0110.00317.46
8.4.10.0090.00019.72
8.3.280.0100.01018.73
8.3.270.0110.00916.63
8.3.260.0140.00416.73
8.3.250.0130.00617.33
8.3.240.0130.00516.80
8.3.230.0110.00916.75
8.3.220.0110.00719.06
8.3.210.0150.00616.72
8.3.200.0110.00816.65
8.3.190.0070.00819.41
8.3.180.0100.01016.59
8.3.170.0090.00619.04
8.3.160.0040.00716.73
8.3.150.0110.00320.67
8.3.140.0070.00316.62
8.3.130.0100.00018.64
8.3.120.0080.00018.95
8.3.110.0060.00320.94
8.3.100.0100.00324.06
8.3.90.0140.00426.77
8.3.80.0000.01016.75
8.3.70.0130.00917.00
8.3.60.0160.00618.56
8.3.50.0030.01018.35
8.3.40.0070.01118.96
8.3.30.0070.00718.71
8.3.20.0000.00920.46
8.3.10.0080.00020.73
8.3.00.0040.00422.10
8.2.290.0070.00320.55
8.2.280.0040.00520.38
8.2.270.0110.00717.30
8.2.260.0060.00318.82
8.2.250.0170.00316.88
8.2.240.0080.00019.46
8.2.230.0130.00322.58
8.2.220.0080.00037.54
8.2.210.0040.01126.77
8.2.200.0000.00916.88
8.2.190.0120.00316.63
8.2.180.0180.00318.65
8.2.170.0150.00022.96
8.2.160.0140.00020.69
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00320.69
8.2.120.0070.00026.35
8.2.110.0000.00922.43
8.2.100.0110.00017.97
8.2.90.0040.00417.88
8.2.80.0000.00818.88
8.2.70.0090.00018.29
8.2.60.0000.00817.75
8.2.50.0080.00017.63
8.2.40.0000.00817.88
8.2.30.0000.00819.56
8.2.20.0110.00018.34
8.2.10.0000.00718.40
8.2.00.0060.00318.28
8.1.330.0130.00622.01
8.1.320.0120.00717.96
8.1.310.0080.00316.82
8.1.300.0090.00918.03
8.1.290.0030.00618.88
8.1.280.0040.01425.92
8.1.270.0070.00022.30
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.25
8.1.230.0080.00422.36
8.1.220.0050.00317.89
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00917.47
8.1.180.0000.00918.10
8.1.170.0030.00618.97
8.1.160.0050.00319.06
8.1.150.0080.00020.46
8.1.140.0030.00619.33
8.1.130.0000.00719.13
8.1.120.0040.00417.67
8.1.110.0050.00317.55
8.1.100.0040.00417.71
8.1.90.0040.00417.63
8.1.80.0050.00217.64
8.1.70.0050.00217.60
8.1.60.0000.00917.80
8.1.50.0060.00317.79
8.1.40.0040.00417.70
8.1.30.0000.00817.72
8.1.20.0040.00417.70
8.1.10.0030.00617.61
8.1.00.0070.00017.70
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0000.00818.61
8.0.270.0040.00417.53
8.0.260.0040.00416.96
8.0.250.0000.00717.13
8.0.240.0070.00317.06
8.0.230.0040.00417.16
8.0.220.0000.00717.14
8.0.210.0000.00717.00
8.0.200.0070.00017.20
8.0.190.0060.00317.19
8.0.180.0040.00417.02
8.0.170.0000.00717.09
8.0.160.0030.00417.21
8.0.150.0000.00717.10
8.0.140.0070.00017.05
8.0.130.0060.00013.56
8.0.120.0000.00716.95
8.0.110.0050.00217.16
8.0.100.0040.00416.92
8.0.90.0040.00417.12
8.0.80.0100.01317.03
8.0.70.0050.00316.99
8.0.60.0000.01016.92
8.0.50.0040.00417.07
8.0.30.0100.01017.24
8.0.20.0120.00817.40
8.0.10.0080.00017.00
8.0.00.0100.00816.89
7.4.330.0000.00515.55
7.4.320.0000.00616.82
7.4.300.0040.00416.72
7.4.290.0030.00316.65
7.4.280.0030.00616.82
7.4.270.0030.00616.73
7.4.260.0040.00416.73
7.4.250.0070.00016.70
7.4.240.0030.00316.76
7.4.230.0040.00416.91
7.4.220.0040.01316.70
7.4.210.0040.01316.84
7.4.200.0030.00316.72
7.4.160.0120.00616.75
7.4.150.0130.00617.40
7.4.140.0070.01517.86
7.4.130.0120.00616.63
7.4.120.0090.01116.72
7.4.110.0130.00316.62
7.4.100.0120.00916.76
7.4.90.0120.00616.65
7.4.80.0090.00919.39
7.4.70.0090.01416.62
7.4.60.0060.00916.56
7.4.50.0060.00816.40
7.4.40.0060.01216.85
7.4.30.0090.01216.78
7.4.00.0030.01215.05
7.3.330.0000.00613.31
7.3.320.0060.00013.13
7.3.310.0030.00316.26
7.3.300.0030.00316.48
7.3.290.0000.00716.32
7.3.280.0070.00716.42
7.3.270.0030.01417.40
7.3.260.0100.00716.52
7.3.250.0120.00516.60
7.3.240.0080.00916.49
7.3.230.0120.00616.45
7.3.210.0130.00716.48
7.3.200.0130.00316.48
7.3.190.0100.01016.38
7.3.180.0080.00816.49
7.3.170.0070.01016.52
7.3.160.0150.00016.69
7.3.120.0030.01315.07
7.3.110.0070.01014.63
7.3.100.0060.00914.72
7.3.90.0100.00014.93
7.3.80.0000.01714.98
7.3.70.0080.00614.82
7.3.60.0040.01115.00
7.3.50.0060.00614.86
7.3.40.0060.00914.90
7.3.30.0040.01414.95
7.3.20.0030.01016.66
7.3.10.0090.00616.56
7.3.00.0070.00416.56
7.2.330.0120.00616.80
7.2.320.0100.01316.68
7.2.310.0110.01116.98
7.2.300.0140.00416.94
7.2.290.0110.00716.98
7.2.250.0100.01015.16
7.2.240.0030.01215.35
7.2.230.0040.01215.30
7.2.220.0070.00715.04
7.2.210.0030.01515.22
7.2.200.0040.01115.31
7.2.190.0130.00615.09
7.2.180.0030.01215.24
7.2.170.0030.01614.95
7.2.60.0320.00817.04
7.2.00.0070.01019.96
7.1.330.0090.00915.66
7.1.320.0030.01216.03
7.1.310.0060.00615.54
7.1.300.0030.00916.17
7.1.290.0060.00615.84
7.1.280.0120.00315.65
7.1.270.0070.01015.98
7.1.260.0040.01415.93
7.1.200.0100.00315.95
7.1.120.0040.00918.69
7.1.110.0030.00618.35
7.1.100.0070.00318.27
7.1.90.0000.01018.43
7.1.80.0040.00918.23
7.1.70.0000.01116.91
7.1.60.0190.00335.09
7.1.50.0110.01134.57
7.1.40.0140.00734.40
7.1.30.0160.00634.58
7.1.20.0070.01434.80
7.1.10.0050.00516.65
7.1.00.0100.00016.72

preferences:
160.99 ms | 403 KiB | 5 Q