3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://store.steampowered.com/app/100"; $dom = new domDocument; libxml_use_internal_errors(true); $dom->loadHTMLFile($url); $classname="game_description_snippet"; $finder = new DomXPath($dom); $spaner = $finder->query("//*[contains(@class, '$classname')]"); foreach ($spaner as $spane) { //This part returns: Fatal error: Call to undefined method DOMElement::item() $mo = $spane->item(0)->nodeValue; echo $mo; } ?>

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.0080.01517.13
8.3.50.0080.01121.32
8.3.40.0060.00919.29
8.3.30.0130.01019.29
8.3.20.0080.00020.91
8.3.10.0040.00424.20
8.3.00.0080.00022.38
8.2.180.0040.01118.91
8.2.170.0070.01422.96
8.2.160.0180.00320.94
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00621.32
8.2.120.0080.00026.35
8.2.110.0030.00619.64
8.2.100.0090.00318.34
8.2.90.0040.00419.55
8.2.80.0040.00417.97
8.2.70.0060.00318.00
8.2.60.0000.00818.43
8.2.50.0050.00318.09
8.2.40.0000.00820.96
8.2.30.0070.00019.95
8.2.20.0080.00018.05
8.2.10.0040.00418.53
8.2.00.0080.00018.59
8.1.280.0090.00925.92
8.1.270.0100.00722.69
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00921.80
8.1.230.0090.00317.95
8.1.220.0050.00318.18
8.1.210.0060.00318.77
8.1.200.0000.01017.85
8.1.190.0050.00517.85
8.1.180.0080.00018.10
8.1.170.0030.00918.79
8.1.160.0060.00321.25
8.1.150.0040.00419.41
8.1.140.0040.00420.02
8.1.130.0030.00318.21
8.1.120.0050.00217.99
8.1.110.0040.00417.93
8.1.100.0050.00217.98
8.1.90.0000.00917.95
8.1.80.0030.00517.93
8.1.70.0030.00517.87
8.1.60.0030.00518.00
8.1.50.0060.00317.84
8.1.40.0050.00317.95
8.1.30.0040.00417.93
8.1.20.0030.00617.99
8.1.10.0050.00317.84
8.1.00.0040.00417.99
8.0.300.0060.00318.77
8.0.290.0040.00417.38
8.0.280.0070.00018.91
8.0.270.0030.00317.82
8.0.260.0030.00317.75
8.0.250.0070.00417.44
8.0.240.0030.00517.48
8.0.230.0070.00017.39
8.0.220.0030.00317.31
8.0.210.0040.00317.34
8.0.200.0030.00317.50
8.0.190.0110.00017.46
8.0.180.0000.00917.39
8.0.170.0040.00417.47
8.0.160.0000.00817.38
8.0.150.0000.00717.29
8.0.140.0000.00817.22
8.0.130.0000.00613.91
8.0.120.0080.00017.30
8.0.110.0080.00017.52
8.0.100.0040.00417.37
8.0.90.0040.00417.48
8.0.80.0070.01117.47
8.0.70.0030.00617.38
8.0.60.0080.00017.48
8.0.50.0050.00317.29
8.0.30.0090.01117.68
8.0.20.0120.00717.72
8.0.10.0040.00417.62
8.0.00.0100.01117.29
7.4.330.0050.00017.35
7.4.320.0000.00617.14
7.4.300.0070.00016.96
7.4.290.0000.00717.07
7.4.280.0100.00017.07
7.4.270.0000.00816.91
7.4.260.0000.00716.95
7.4.250.0040.00416.97
7.4.240.0040.00417.07
7.4.230.0000.00817.14
7.4.220.0100.00916.91
7.4.210.0050.01317.04
7.4.200.0000.00717.00
7.4.160.0200.00317.16
7.4.150.0190.00017.40
7.4.140.0140.00917.86
7.4.130.0080.01317.04
7.4.120.0100.00816.96
7.4.110.0100.01416.99
7.4.100.0160.00617.09
7.4.90.0000.01917.07
7.4.80.0110.01119.39
7.4.70.0070.01217.24
7.4.60.0130.00617.03
7.4.50.0030.01316.95
7.4.40.0090.00917.01
7.4.30.0120.00816.93
7.4.00.0070.00715.14
7.3.330.0000.00513.61
7.3.320.0000.00613.63
7.3.310.0000.00716.81
7.3.300.0070.00016.88
7.3.290.0070.00016.84
7.3.280.0110.00616.83
7.3.270.0210.00317.40
7.3.260.0140.00316.74
7.3.250.0090.01116.89
7.3.240.0080.01016.87
7.3.230.0030.01516.71
7.3.210.0090.00916.81
7.3.200.0150.00419.39
7.3.190.0110.00716.86
7.3.180.0070.01416.98
7.3.170.0160.00816.86
7.3.160.0030.01916.98
7.2.330.0180.00017.06
7.2.320.0100.01317.17
7.2.310.0100.00717.05
7.2.300.0080.00816.96
7.2.290.0140.01017.05
7.2.60.0090.00617.29
7.2.00.0060.00920.01
7.1.200.0030.00916.19
7.1.100.0040.00818.39
7.1.70.0030.00617.34
7.1.60.0190.00619.40
7.1.50.0080.00817.64
7.1.00.0030.07722.97
7.0.200.0590.00715.13
7.0.60.0430.04720.42
7.0.50.0000.06018.14
7.0.40.0030.07020.53
7.0.30.0470.07320.69
7.0.20.0370.05020.51
7.0.10.0100.08020.59
7.0.00.0170.07720.61
5.6.280.0070.03021.43
5.6.210.0130.04321.16
5.6.200.0100.04018.64
5.6.190.0130.05021.13
5.6.180.0230.03721.02
5.6.170.0300.07021.02
5.6.160.0070.05020.96
5.6.150.0030.04718.71
5.6.140.0100.04018.82
5.6.130.0030.04018.54
5.6.120.0070.05021.65
5.6.110.0000.04721.38
5.6.100.0070.04721.42
5.6.90.0100.07321.41
5.6.80.0100.08020.81
5.5.350.0270.08020.92
5.5.340.0100.08018.61
5.5.330.0100.03720.74
5.5.320.0470.03720.73
5.5.310.0230.03720.73
5.5.300.0070.05318.50
5.5.290.0130.08318.55
5.5.280.0030.07721.09
5.5.270.0030.04021.16
5.5.260.0070.04021.36
5.5.250.0100.07321.09
5.5.240.0230.07320.57

preferences:
48.93 ms | 401 KiB | 5 Q