3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <DataSet> <xs:schema id="OutDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="OutDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="BuscaSMS"> <xs:complexType> <xs:sequence> <xs:element name="seunum" type="xs:string" minOccurs="0" /> <xs:element name="celular" type="xs:string" minOccurs="0" /> <xs:element name="mensagem" type="xs:string" minOccurs="0" /> <xs:element name="status" type="xs:string" minOccurs="0" /> <xs:element name="datarec" type="xs:dateTime" minOccurs="0" /> <xs:element name="dataenv" type="xs:dateTime" minOccurs="0" /> <xs:element name="datastatus" type="xs:dateTime" minOccurs="0" /> <xs:element name="op" type="xs:short" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <OutDataSet xmlns=""> <BuscaSMS diffgr:id="BuscaSMS0" msdata:rowOrder="3"> <seunum>999999999</seunum> <celular>9999999999</celular> <mensagem>obrigado</mensagem> <status>MO</status> <datarec>2018-02-01T13:30:51.547-02:00</datarec> <dataenv>2018-02-01T13:30:52.773-02:00</dataenv> <datastatus>2018-02-01T13:30:52.773-02:00</datastatus> <op>5</op> </BuscaSMS> <BuscaSMS diffgr:id="BuscaSMS1" msdata:rowOrder="4"> <seunum>99999999999</seunum> <celular>9999999999</celular> <mensagem>Obrigado.</mensagem> <status>MO</status> <datarec>2018-02-01T13:37:17.18-02:00</datarec> <dataenv>2018-02-01T13:37:20.807-02:00</dataenv> <datastatus>2018-02-01T13:37:20.807-02:00</datastatus> <op>5</op> </BuscaSMS> </OutDataSet> </diffgr:diffgram> </DataSet> XML; $dom = new \DOMDocument(); $dom->loadXML($xml); function formatNode(\DOMNode $node) : string { if (!$node->hasChildNodes()) { return $node->nodeName.': '.$node->nodeValue; } return $node->nodeName."\n\t".formatList($node->childNodes); } function formatList(\DOMNodeList $list) { $array = []; foreach($list as $node) { $array[] = formatNode($node); } return implode("\n" , $array); } echo formatNode($dom);

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.0040.01218.65
8.3.50.0140.00018.16
8.3.40.0090.00619.21
8.3.30.0150.00419.22
8.3.20.0030.00619.23
8.3.10.0060.00923.77
8.3.00.0080.00019.97
8.2.180.0100.00718.66
8.2.170.0100.00619.21
8.2.160.0140.00322.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.39
8.2.110.0070.00420.95
8.2.100.0030.01018.10
8.2.90.0080.00018.28
8.2.80.0060.00318.30
8.2.70.0080.00018.30
8.2.60.0040.00418.41
8.2.50.0050.00518.10
8.2.40.0030.00619.84
8.2.30.0040.00419.59
8.2.20.0000.00818.40
8.2.10.0040.00418.44
8.2.00.0040.00418.61
8.1.280.0110.00425.92
8.1.270.0080.00024.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00717.76
8.1.230.0070.00421.34
8.1.220.0000.00918.15
8.1.210.0060.00319.29
8.1.200.0030.00717.60
8.1.190.0050.00517.50
8.1.180.0000.00918.10
8.1.170.0060.00318.84
8.1.160.0040.00419.22
8.1.150.0070.00019.21
8.1.140.0000.00817.93
8.1.130.0040.00419.23
8.1.120.0030.00617.74
8.1.110.0040.00417.84
8.1.100.0050.00217.67
8.1.90.0030.00517.66
8.1.80.0040.00417.71
8.1.70.0000.00717.65
8.1.60.0110.00017.96
8.1.50.0040.00417.87
8.1.40.0060.00317.86
8.1.30.0040.00417.88
8.1.20.0020.00517.87
8.1.10.0000.00817.79
8.1.00.0030.00517.95
8.0.300.0030.00619.95
8.0.290.0000.00817.00
8.0.280.0070.00018.75
8.0.270.0070.00017.68
8.0.260.0040.00417.19
8.0.250.0040.00417.33
8.0.240.0030.00517.27
8.0.230.0000.00717.40
8.0.220.0000.00817.20
8.0.210.0000.00717.19
8.0.200.0000.00817.33
8.0.190.0040.00417.21
8.0.180.0000.00717.35
8.0.170.0080.00017.16
8.0.160.0000.00717.37
8.0.150.0070.00017.29
8.0.140.0000.00717.13
8.0.130.0050.00013.65
8.0.120.0030.00517.16
8.0.110.0000.00717.13
8.0.100.0040.00417.09
8.0.90.0000.00717.16
8.0.80.0120.00917.28
8.0.70.0040.00417.27
8.0.60.0030.00517.19
8.0.50.0000.00717.36
8.0.30.0120.00817.42
8.0.20.0090.01017.49
8.0.10.0030.00517.46
8.0.00.0080.01417.04
7.4.330.0000.00515.55
7.4.320.0030.00316.68
7.4.300.0030.00316.84
7.4.290.0030.00316.77
7.4.280.0040.00416.85
7.4.270.0070.00016.84
7.4.260.0040.00416.82
7.4.250.0050.00316.78
7.4.240.0000.00716.91
7.4.230.0040.00416.66
7.4.220.0080.00017.02
7.4.210.0040.01116.93
7.4.200.0050.00317.00
7.4.160.0100.00816.96
7.4.150.0110.00917.40
7.4.140.0140.00317.86
7.4.130.0110.00716.67
7.4.120.0110.00916.91
7.4.110.0060.01316.82
7.4.100.0090.00916.90
7.4.90.0000.01816.77
7.4.80.0150.00919.39
7.4.70.0150.00617.01
7.4.60.0030.01316.69
7.4.50.0110.00716.68
7.4.40.0100.00716.54
7.4.00.0090.00914.84
7.3.330.0020.00213.76
7.3.320.0000.00713.51
7.3.310.0000.00716.78
7.3.300.0030.00316.78
7.3.290.0070.01016.71
7.3.280.0090.01016.77
7.3.270.0100.01717.40
7.3.260.0160.00616.81
7.3.250.0110.01116.76
7.3.240.0120.00716.88
7.3.230.0190.00416.78
7.3.210.0070.01116.79
7.3.200.0140.00316.82
7.3.190.0130.00317.01
7.3.180.0110.00516.59
7.3.170.0090.00616.87
7.3.160.0030.01416.84
7.2.330.0070.01017.07
7.2.320.0070.01117.09
7.2.310.0170.00717.08
7.2.300.0050.01317.05
7.2.290.0130.00717.00
7.2.60.0040.01217.21
7.2.20.0140.00718.12
7.2.10.0310.01218.38
7.2.00.0130.00318.37
7.1.200.0030.01216.06
7.1.140.0320.01217.07
7.1.130.0330.01917.34
7.1.120.0250.01117.23
7.1.110.0390.01316.71
7.1.100.0380.01316.46
7.1.90.0490.00316.21
7.1.80.0340.01416.34
7.1.70.0520.00615.24
7.1.60.0530.01333.47
7.1.50.0700.01433.11
7.1.40.0470.01332.75
7.1.30.0150.02332.71
7.1.20.0740.01033.02
7.1.10.0330.01014.98
7.1.00.0360.00315.17

preferences:
32.17 ms | 400 KiB | 5 Q