3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument; $dom->loadXML(<<<XML <root xmlns="http://hello.com" xmlns:world="http://world.com" > <item>1</item> </root> XML); $xp = new DOMXPath($dom); //var_dump($dom->documentElement->firstElementChild); foreach ($xp->query("./namespace::*", $dom->documentElement->firstElementChild) as $x) { var_dump($x->nodeName); } echo "---\n"; foreach ($xp->query(".//namespace::*", $dom->documentElement->firstElementChild) as $x) { var_dump($x->nodeName); }

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.0140.00717.85
8.4.130.0100.01117.91
8.4.120.0090.01120.73
8.4.110.0090.00621.14
8.4.100.0120.01018.21
8.4.90.0140.00720.97
8.4.80.0060.00318.37
8.4.70.0090.00917.92
8.4.60.0050.00419.23
8.4.50.0120.00820.99
8.4.40.0160.00318.25
8.4.30.0130.00619.32
8.4.20.0090.01119.85
8.4.10.0050.01419.87
8.3.270.0100.00917.11
8.3.260.0100.00916.95
8.3.250.0100.00919.18
8.3.240.0060.00316.77
8.3.230.0090.01016.60
8.3.220.0080.01017.48
8.3.210.0020.00716.88
8.3.200.0060.00316.70
8.3.190.0150.00717.77
8.3.180.0100.00819.23
8.3.170.0030.00619.23
8.3.160.0040.00816.92
8.3.150.0100.01017.68
8.3.140.0080.00016.83
8.3.130.0040.00718.77
8.3.120.0100.01019.21
8.3.110.0110.00020.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0040.00718.55
8.3.70.0070.01117.00
8.3.60.0120.00317.13
8.3.50.0060.00916.74
8.3.40.0070.01520.01
8.3.30.0150.00619.42
8.3.20.0100.01022.14
8.3.10.0170.00322.02
8.3.00.0090.01219.30
8.2.290.0140.00621.17
8.2.280.0100.00518.58
8.2.270.0060.01216.96
8.2.260.0090.00017.28
8.2.250.0060.00317.01
8.2.240.0120.00617.45
8.2.230.0070.00422.58
8.2.220.0030.00637.54
8.2.210.0070.01126.77
8.2.200.0060.00316.75
8.2.190.0090.00617.00
8.2.180.0170.00317.25
8.2.170.0100.00619.06
8.2.160.0140.00720.47
8.2.150.0070.00719.35
8.2.140.0100.00320.85
8.2.130.0070.00720.72
8.2.120.0100.01019.64
8.2.110.0150.00619.72
8.2.100.0140.00719.54
8.2.90.0140.00419.12
8.2.80.0090.00919.78
8.2.70.0140.00718.85
8.2.60.0150.00319.16
8.2.50.0130.00719.72
8.2.40.0140.00419.03
8.2.30.0060.01318.77
8.2.20.0120.00919.02
8.2.10.0100.01019.21
8.2.00.0140.00719.03
8.1.330.0130.00622.21
8.1.320.0100.00918.45
8.1.310.0090.00918.23
8.1.300.0110.00818.90
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0070.01122.44
8.1.260.0090.00922.46
8.1.250.0150.00422.52
8.1.240.0160.00318.84
8.1.230.0100.01018.77
8.1.220.0150.00421.02
8.1.210.0150.00320.60
8.1.200.0040.01420.84
8.1.190.0120.00619.25
8.1.180.0090.00918.93
8.1.170.0030.01418.97
8.1.160.0110.00718.98
8.1.150.0100.00719.09
8.1.140.0140.00019.29
8.1.130.0060.00919.19
8.1.120.0110.00719.18
8.1.110.0040.01119.03
8.1.100.0150.00019.97
8.1.90.0060.01218.84
8.1.80.0110.00420.24
8.1.70.0090.00619.29
8.1.60.0120.00619.18
8.1.50.0110.00718.90
8.1.40.0070.00719.18
8.1.30.0140.00319.44
8.1.20.0120.00320.43
8.1.10.0060.00919.11
8.1.00.0070.00718.75

preferences:
39.74 ms | 401 KiB | 5 Q