3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<'XML' <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <NewDataSet xmlns=""> <Table diffgr:id="Table1" msdata:rowOrder="0"> <CMan_Code>47156</CMan_Code> <CMan_Name>BARB </CMan_Name> </Table> <Table diffgr:id="Table2" msdata:rowOrder="1"> <CMan_Code>1</CMan_Code> <CMan_Name>GREATN </CMan_Name> </Table> <Table diffgr:id="Table3" msdata:rowOrder="2"> <CMan_Code>89252</CMan_Code> <CMan_Name>DERIN </CMan_Name> </Table> </NewDataSet> </diffgr:diffgram> XML; $document = new DOMDocument(); $document->loadXML($xml); $xpath = new DOMXpath($document); foreach ($xpath->evaluate('//NewDataSet/Table') as $tableNode) { var_dump( [ 'code' => trim($xpath->evaluate('string(CMan_Code)', $tableNode)), 'name' => trim($xpath->evaluate('string(CMan_Name)', $tableNode)) ] ); }

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.0090.00618.80
8.3.50.0150.00016.97
8.3.40.0070.01519.08
8.3.30.0040.01119.04
8.3.20.0040.00420.89
8.3.10.0090.00022.24
8.3.00.0040.00424.04
8.2.180.0130.00318.88
8.2.170.0120.00919.40
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0000.00821.58
8.2.110.0090.00321.56
8.2.100.0090.00318.21
8.2.90.0030.01018.43
8.2.80.0050.00318.30
8.2.70.0040.00418.42
8.2.60.0000.00818.53
8.2.50.0130.00018.10
8.2.40.0060.00319.84
8.2.30.0040.00419.87
8.2.20.0000.00818.46
8.2.10.0050.00319.69
8.2.00.0000.00819.74
8.1.280.0070.00725.92
8.1.270.0080.00021.13
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00624.21
8.1.230.0110.00019.72
8.1.220.0050.00318.16
8.1.210.0040.00418.77
8.1.200.0120.00017.73
8.1.190.0030.00517.85
8.1.180.0050.00222.48
8.1.170.0040.00418.89
8.1.160.0040.00419.32
8.1.150.0000.00819.34
8.1.140.0050.00321.28
8.1.130.0070.00020.48
8.1.120.0000.00818.00
8.1.110.0040.00417.88
8.1.100.0040.00417.93
8.1.90.0000.01017.93
8.1.80.0050.00317.95
8.1.70.0000.00717.86
8.1.60.0040.00417.97
8.1.50.0030.00517.91
8.1.40.0030.00618.02
8.1.30.0080.00417.88
8.1.20.0060.00618.09
8.1.10.0030.00517.87
8.1.00.0060.00317.76
8.0.300.0000.00820.19
8.0.290.0050.00317.25
8.0.280.0050.00218.91
8.0.270.0000.00717.58
8.0.260.0030.00320.42
8.0.250.0040.00417.46
8.0.240.0000.00717.47
8.0.230.0000.00717.49
8.0.220.0040.00417.45
8.0.210.0000.00817.21
8.0.200.0080.00017.25
8.0.190.0040.00417.39
8.0.180.0080.00017.46
8.0.170.0030.00617.28
8.0.160.0040.00417.45
8.0.150.0030.00617.40
8.0.140.0000.00717.21
8.0.130.0060.00013.89
8.0.120.0080.00017.21
8.0.110.0000.00817.48
8.0.100.0050.00217.34
8.0.90.0040.00417.41
8.0.80.0090.00617.29
8.0.70.0050.00217.37
8.0.60.0020.00517.31
8.0.50.0040.00417.31
8.0.30.0030.01717.55
8.0.20.0100.01017.45
8.0.10.0040.00417.41
8.0.00.0090.01117.23
7.4.330.0000.00515.55
7.4.320.0030.00316.99
7.4.300.0000.00616.96
7.4.290.0030.00316.86
7.4.280.0000.00916.99
7.4.270.0070.00016.95
7.4.260.0000.00613.57
7.4.250.0050.00316.95
7.4.240.0040.00417.00
7.4.230.0000.00716.85
7.4.220.0030.00416.94
7.4.210.0030.01216.95
7.4.200.0030.00317.14
7.4.130.0060.01216.95
7.4.120.0060.01216.96
7.4.110.0140.00417.08
7.4.100.0140.01016.99
7.4.90.0140.00316.93
7.4.80.0110.00619.39
7.4.70.0100.00616.87
7.4.60.0140.00416.95
7.4.50.0100.00716.86
7.4.40.0060.01216.89
7.4.00.0140.00415.15
7.3.330.0040.00416.82
7.3.320.0000.00613.42
7.3.310.0030.00316.65
7.3.300.0030.00316.55
7.3.290.0060.00916.77
7.3.280.0070.01316.68
7.3.260.0090.01016.87
7.3.240.0090.00916.80
7.3.230.0070.01016.61
7.3.210.0090.01216.80
7.3.200.0120.00616.79
7.3.190.0140.00416.63
7.3.180.0060.01316.70
7.3.170.0080.00816.91
7.3.160.0030.01316.68
7.3.80.0000.01314.92
7.3.70.0060.01215.08
7.3.60.0050.01114.96
7.3.50.0060.00614.88
7.3.40.0080.00514.71
7.3.30.0120.00214.65
7.3.20.0140.01015.05
7.3.10.0110.01414.63
7.3.00.0090.00614.90
7.2.330.0100.01016.98
7.2.320.0070.01117.13
7.2.310.0060.01216.87
7.2.300.0150.01017.16
7.2.290.0040.01316.98
7.2.210.0190.00015.31
7.2.200.0040.01115.29
7.2.190.0110.00415.18
7.2.180.0080.01115.29
7.2.170.0100.00515.11
7.2.160.0030.00915.28
7.2.150.0150.00515.16
7.2.140.0060.00915.14
7.2.130.0150.01115.43
7.2.120.0030.01215.02
7.2.110.0170.00315.15
7.2.100.0030.01615.14
7.2.90.0140.00615.23
7.2.80.1020.00715.20
7.2.70.0170.00015.18
7.2.60.0220.00015.23
7.2.50.0120.00415.20
7.2.40.0150.00815.18
7.2.30.0110.01115.29
7.2.20.0130.00815.21
7.2.10.0060.01314.97
7.2.00.0120.00915.35
7.1.310.0060.00914.07
7.1.300.0090.00614.23
7.1.290.0100.01014.08
7.1.280.0110.01114.03
7.1.270.0110.00414.11
7.1.260.0120.00314.01
7.1.250.0030.01214.06

preferences:
62.63 ms | 400 KiB | 5 Q