3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<artists page="1" perPage="100" totalPages="253081" total="25308020"> <artist> <name>David Bowie</name> <playcount>151727648</playcount> <listeners>3969219</listeners> <mbid>5441c29d-3602-4898-b1a1-b77fa23b8e50</mbid> <url>http://www.last.fm/music/David+Bowie</url> <streamable>0</streamable> <image size="small"> http://img2-ak.lst.fm/i/u/34s/937d62bb145040b9b709319c1e680037.png </image> <image size="medium"> http://img2-ak.lst.fm/i/u/64s/937d62bb145040b9b709319c1e680037.png </image> <image size="large"> http://img2-ak.lst.fm/i/u/174s/937d62bb145040b9b709319c1e680037.png </image> <image size="extralarge"> http://img2-ak.lst.fm/i/u/300x300/937d62bb145040b9b709319c1e680037.png </image> <image size="mega"> http://img2-ak.lst.fm/i/u/937d62bb145040b9b709319c1e680037.png </image> </artist> <artist> <name>The Beatles</name> <playcount>456495139</playcount> <listeners>3986977</listeners> <mbid>b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d</mbid> <url>http://www.last.fm/music/The+Beatles</url> <streamable>0</streamable> <image size="small"> http://img2-ak.lst.fm/i/u/34s/55efc33bcd234fd8a1d65b3d49bf9661.png </image> <image size="medium"> http://img2-ak.lst.fm/i/u/64s/55efc33bcd234fd8a1d65b3d49bf9661.png </image> <image size="large"> http://img2-ak.lst.fm/i/u/174s/55efc33bcd234fd8a1d65b3d49bf9661.png </image> <image size="extralarge"> http://img2-ak.lst.fm/i/u/300x300/55efc33bcd234fd8a1d65b3d49bf9661.png </image> <image size="mega"> http://img2-ak.lst.fm/i/u/55efc33bcd234fd8a1d65b3d49bf9661.png </image> </artist> </artists>'; $doc = new DOMDocument(); $doc->loadXML($xml, LIBXML_PARSEHUGE); $artists = $doc->getElementsByTagName('artist'); foreach($artists as $artist) { var_dump($artist); }

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.70.0150.00316.75
8.3.60.0110.01118.58
8.3.50.0160.00522.17
8.3.40.0130.00318.83
8.3.30.0100.00718.77
8.3.20.0030.00520.49
8.3.10.0030.00620.68
8.3.00.0080.00022.07
8.2.190.0090.00917.03
8.2.180.0110.00416.75
8.2.170.0150.00722.96
8.2.160.0070.00722.46
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.19
8.2.110.0060.00321.31
8.2.100.0040.00817.97
8.2.90.0000.00818.15
8.2.80.0000.01118.28
8.2.70.0060.00317.73
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0050.00320.77
8.2.30.0040.00419.82
8.2.20.0050.00517.95
8.2.10.0000.00818.34
8.2.00.0040.00418.35
8.1.280.0160.00025.92
8.1.270.0070.01522.47
8.1.260.0080.00026.35
8.1.250.0120.00328.09
8.1.240.0150.00624.04
8.1.230.0060.00621.29
8.1.220.0080.00018.14
8.1.210.0080.00019.13
8.1.200.0070.00317.50
8.1.190.0030.00617.60
8.1.180.0000.00818.10
8.1.170.0050.00518.89
8.1.160.0030.00521.07
8.1.150.0050.00319.25
8.1.140.0050.00319.72
8.1.130.0040.00417.85
8.1.120.0080.00017.67
8.1.110.0020.00517.77
8.1.100.0000.00817.62
8.1.90.0030.00617.64
8.1.80.0080.00017.60
8.1.70.0000.00717.70
8.1.60.0040.00417.71
8.1.50.0040.00417.67
8.1.40.0040.00417.67
8.1.30.0030.00617.75
8.1.20.0000.00817.84
8.1.10.0080.00017.88
8.1.00.0000.00817.79
8.0.300.0040.00420.36
8.0.290.0040.00417.00
8.0.280.0000.00718.63
8.0.270.0030.00317.44
8.0.260.0070.00017.54
8.0.250.0000.00717.12
8.0.240.0050.00317.29
8.0.230.0040.00417.23
8.0.220.0080.00017.02
8.0.210.0050.00317.02
8.0.200.0020.00517.28
8.0.190.0040.00417.25
8.0.180.0040.00417.17
8.0.170.0050.00317.08
8.0.160.0000.00817.06
8.0.150.0060.00317.09
8.0.140.0000.00716.93
8.0.130.0060.00013.61
8.0.120.0030.00517.09
8.0.110.0080.00017.18
8.0.100.0070.00017.01
8.0.90.0040.00416.99
8.0.80.0030.01317.06
8.0.70.0040.00417.05
8.0.60.0040.00417.04
8.0.50.0000.00817.17
8.0.30.0140.00617.23
8.0.20.0170.00717.42
8.0.10.0050.00317.07
8.0.00.0100.01017.00
7.4.330.0050.00017.00
7.4.320.0000.00616.80
7.4.300.0030.00316.91
7.4.290.0040.00416.76
7.4.280.0080.00016.58
7.4.270.0030.00316.75
7.4.260.0000.00916.89
7.4.250.0030.00516.60
7.4.240.0070.00016.75
7.4.230.0000.00816.90
7.4.220.0130.00716.94
7.4.210.0080.00616.81
7.4.200.0090.00016.66
7.4.160.0120.00316.65
7.4.150.0120.01217.40
7.4.140.0110.01417.86
7.4.130.0110.00916.70
7.4.120.0090.01016.71
7.4.110.0030.01416.73
7.4.100.0190.00016.65
7.4.90.0040.01616.71
7.4.80.0100.01019.39
7.4.70.0150.00416.73
7.4.60.0150.00616.64
7.4.50.0070.00616.67
7.4.40.0120.00816.83
7.4.30.0090.01316.68
7.4.00.0100.00615.13
7.3.330.0050.00313.20
7.3.320.0030.00313.41
7.3.310.0000.00716.35
7.3.300.0030.00316.36
7.3.290.0110.00616.50
7.3.280.0120.00916.54
7.3.270.0150.00617.40
7.3.260.0110.01116.69
7.3.250.0120.00916.63
7.3.240.0070.01616.82
7.3.230.0130.00616.44
7.3.210.0110.00816.72
7.3.200.0060.01916.79
7.3.190.0030.01416.64
7.3.180.0140.00416.51
7.3.170.0090.00916.66
7.3.160.0070.01816.65
7.3.10.0140.00316.28
7.3.00.0120.00616.57
7.2.330.0150.00916.91
7.2.320.0130.00716.66
7.2.310.0060.01916.70
7.2.300.0120.00616.95
7.2.290.0080.01116.84
7.2.130.0130.00316.63
7.2.120.0040.01116.73
7.2.110.0040.00716.52
7.2.100.0100.00316.49
7.2.90.0060.00616.79
7.2.80.0070.00716.79
7.2.70.0070.01016.95
7.2.60.0070.00716.93
7.2.50.0040.01116.98
7.2.40.0100.00316.91
7.2.30.0100.00616.85
7.2.20.0160.00316.70
7.2.10.0090.00916.67
7.2.00.0160.00617.87
7.1.250.0040.01115.41
7.1.200.0030.00515.88
7.1.100.0120.00618.09
7.1.70.0070.01017.00
7.1.60.0070.02019.19
7.1.50.0030.01416.70
7.1.00.0100.06722.49
7.0.200.0400.00714.86
7.0.60.0100.08321.94
7.0.50.0070.08717.96
7.0.40.0070.08720.11
7.0.30.0400.07020.38
7.0.20.0400.07020.25
7.0.10.0070.06320.29
7.0.00.0130.07020.12
5.6.280.0030.03721.03
5.6.210.0030.08020.66
5.6.200.0070.04018.28
5.6.190.0030.07320.35
5.6.180.0270.04020.57
5.6.170.0300.04020.68
5.6.160.0030.05020.68
5.6.150.0070.08318.22
5.6.140.0030.08318.23
5.6.130.0030.04018.35
5.6.120.0100.04021.02
5.6.110.0100.07721.24
5.6.100.0000.06321.21
5.6.90.0100.08021.21
5.6.80.0130.07720.51
5.5.350.0200.04020.55
5.5.340.0000.07018.11
5.5.330.0070.05720.61
5.5.320.0300.04320.37
5.5.310.0300.07720.39
5.5.300.0070.08018.02
5.5.290.0100.07718.02
5.5.280.0100.08020.89
5.5.270.0130.07720.92
5.5.260.0200.07020.89
5.5.250.0030.06720.70
5.5.240.0070.02720.18

preferences:
21.25 ms | 401 KiB | 5 Q