3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<'EOT' <data> <categories> <categories_name>Toners</categories_name> <childs> <categories> <categories_name>Ex ample</categories_name> </categories> </childs> </categories> </data> EOT; $doc = new DOMDocument(); $doc->loadXML($xml); $xpath = new DOMXPath($doc); foreach($xpath->query('//categories[child::categories_name="Toners"]/childs/categories[child::categories_name="Ex ample"]') as $node) { var_dump($node); }

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.0060.01618.65
8.3.50.0140.00316.90
8.3.40.0130.00319.24
8.3.30.0000.01718.99
8.3.20.0040.00421.95
8.3.10.0050.00323.86
8.3.00.0080.00322.11
8.2.180.0110.00818.72
8.2.170.0140.01019.20
8.2.160.0110.00322.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.01026.16
8.2.120.0080.00019.48
8.2.110.0100.01022.58
8.2.100.0070.00418.03
8.2.90.0060.00319.86
8.2.80.0040.00417.97
8.2.70.0030.00618.18
8.2.60.0000.00818.59
8.2.50.0040.00418.10
8.2.40.0040.00421.45
8.2.30.0050.00319.55
8.2.20.0050.00318.31
8.2.10.0040.00418.57
8.2.00.0030.00519.71
8.1.280.0140.00725.92
8.1.270.0050.00320.93
8.1.260.0080.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00422.30
8.1.230.0060.00622.99
8.1.220.0000.00817.89
8.1.210.0060.00318.77
8.1.200.0040.00417.60
8.1.190.0030.00617.63
8.1.180.0000.00818.10
8.1.170.0000.00818.97
8.1.160.0000.00719.27
8.1.150.0050.00219.16
8.1.140.0040.00422.32
8.1.130.0080.00417.73
8.1.120.0040.00417.89
8.1.110.0030.00617.92
8.1.100.0040.00417.88
8.1.90.0040.00417.73
8.1.80.0000.00817.70
8.1.70.0030.00317.91
8.1.60.0040.00417.91
8.1.50.0080.00017.92
8.1.40.0000.00717.65
8.1.30.0000.00817.99
8.1.20.0000.00918.02
8.1.10.0100.00317.95
8.1.00.0000.00817.76
8.0.300.0040.00420.33
8.0.290.0090.00016.88
8.0.280.0000.00718.91
8.0.270.0030.00317.46
8.0.260.0000.00717.18
8.0.250.0040.00417.20
8.0.240.0000.00717.46
8.0.230.0000.00717.45
8.0.220.0040.00417.38
8.0.210.0030.00317.10
8.0.200.0090.00017.23
8.0.190.0000.00917.34
8.0.180.0030.00517.32
8.0.170.0030.00617.40
8.0.160.0000.00817.20
8.0.150.0000.00717.36
8.0.140.0040.00417.35
8.0.130.0030.00313.68
8.0.120.0030.00517.07
8.0.110.0080.00017.19
8.0.100.0050.00317.25
8.0.90.0040.00417.26
8.0.80.0080.00817.30
8.0.70.0050.00217.23
8.0.60.0040.00417.21
8.0.50.0050.00317.16
8.0.30.0080.01117.59
8.0.20.0080.01517.40
8.0.10.0000.00817.28
8.0.00.0100.01217.15
7.4.330.0050.00017.20
7.4.320.0000.00616.98
7.4.300.0040.00416.97
7.4.290.0000.00716.77
7.4.280.0000.00816.84
7.4.270.0030.00316.85
7.4.260.0030.00816.74
7.4.250.0060.00316.70
7.4.240.0000.00717.00
7.4.230.0070.00016.90
7.4.220.0030.00616.71
7.4.210.0060.00716.92
7.4.200.0040.00416.71
7.4.160.0100.01116.83
7.4.140.0140.00717.86
7.4.130.0180.00616.96
7.4.120.0110.00816.94
7.4.110.0070.01216.84
7.4.100.0080.01216.84
7.4.90.0100.01016.70
7.4.80.0070.01019.39
7.4.70.0120.00616.94
7.4.60.0150.00316.73
7.4.50.0030.01216.78
7.4.40.0120.00616.74
7.4.00.0100.00814.75
7.3.330.0030.00313.58
7.3.320.0000.00613.26
7.3.310.0030.00316.48
7.3.300.0050.00216.55
7.3.290.0030.00316.59
7.3.280.0060.01216.52
7.3.260.0070.01216.83
7.3.240.0090.01116.78
7.3.230.0220.00016.50
7.3.210.0110.00716.49
7.3.200.0110.00716.85
7.3.190.0080.00816.76
7.3.180.0060.01216.66
7.3.170.0170.00716.76
7.3.160.0150.00916.64
7.3.120.0060.01315.11
7.3.110.0100.00714.86
7.3.100.0070.01015.04
7.3.90.0030.01014.99
7.3.80.0000.01114.84
7.3.70.0040.01114.90
7.3.60.0070.00714.73
7.3.50.0060.00314.97
7.3.40.0030.01014.77
7.3.30.0000.01014.68
7.3.20.0030.00616.68
7.3.10.0030.01016.77
7.3.00.0070.00716.82
7.2.330.0170.00717.09
7.2.320.0090.00916.72
7.2.310.0110.00916.96
7.2.300.0100.00716.98
7.2.290.0040.01317.20
7.2.250.0040.01515.06
7.2.240.0040.01515.16
7.2.230.0070.01115.41
7.2.220.0130.00315.11
7.2.210.0000.01415.02
7.2.200.0030.01415.15
7.2.190.0070.01015.20
7.2.180.0040.01515.26
7.2.170.0090.00615.22
7.2.120.0420.00915.02
7.2.110.0610.00615.06
7.2.100.0800.01015.02
7.2.90.0520.01015.13
7.2.80.1220.00714.73
7.2.70.0880.01315.36
7.2.60.0920.00715.21
7.2.50.0540.00315.36
7.2.40.0570.01215.36
7.2.30.0660.00315.34
7.2.20.0580.00515.07
7.2.10.0510.01015.27
7.2.00.1010.00315.18
7.1.330.0030.01015.72
7.1.320.0030.01215.90
7.1.310.0070.01115.82
7.1.300.0030.00915.84
7.1.290.0030.01215.89
7.1.280.0100.00315.72
7.1.270.0000.00815.98
7.1.260.0090.00615.93
7.1.240.0510.00714.00
7.1.230.0580.00313.75
7.1.220.0740.00713.96
7.1.210.0710.00713.76
7.1.200.0430.00414.11
7.1.190.1060.00714.18
7.1.180.0870.00614.11
7.1.170.0730.00613.95
7.1.160.0530.00714.14
7.1.150.0650.01613.91
7.1.140.0570.01014.07
7.1.130.0800.01013.98
7.1.120.0620.00313.84
7.1.110.1350.00314.26
7.1.100.0910.00714.12
7.1.90.0900.01014.04
7.1.80.0620.00714.02
7.1.70.0830.01013.77
7.1.60.0750.00714.11
7.1.50.0750.00713.84
7.1.40.0920.00313.84
7.1.30.0950.01214.09
7.1.20.0690.01113.73
7.1.10.0560.00314.00
7.1.00.1070.00714.02
5.6.380.0170.00014.58

preferences:
39.14 ms | 400 KiB | 5 Q