3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr="<mainGroup> <groupHeading type="heading">This is a sample heading</groupHeading> <group type="groupType1"> <title>Title1</title> <date when="0001"></date> </group> <group type="groupType1"> <title>Title2</title> <date when="0002"></date> </group> <group type="groupType2"> <title>Title3</title> <date when="0003"></date> </group> </mainGroup>"; $xml = simplexml_load_string($xmlstr); // now loop through all <groupheading>, we use an xpath-query... foreach ($xml->xpath("//groupheading") as $gh) { echo $gh; }

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)
5.4.130.0160.04212.03
5.4.120.0160.04111.99
5.4.110.0130.04311.98
5.4.100.0130.06111.98
5.4.90.0150.04311.99
5.4.80.0120.04611.98
5.4.70.0210.06511.98
5.4.60.0150.04111.98
5.4.50.0130.04311.98
5.4.40.0200.05411.97
5.4.30.0200.07011.96
5.4.20.0130.04511.96
5.4.10.0190.03711.97
5.4.00.0160.04011.46
5.3.230.0130.04812.71
5.3.220.0180.04212.68
5.3.210.0190.04212.68
5.3.200.0160.04612.68
5.3.190.0160.04312.68
5.3.180.0180.04312.68
5.3.170.0160.04312.67
5.3.160.0100.05312.67
5.3.150.0140.04512.67
5.3.140.0210.05212.66
5.3.130.0140.04512.66
5.3.120.0150.04412.66
5.3.110.0270.09412.66
5.3.100.0170.04212.12
5.3.90.0160.04312.08
5.3.80.0160.04512.08
5.3.70.0180.04312.08
5.3.60.0160.04312.06
5.3.50.0130.04712.00
5.3.40.0170.04312.00
5.3.30.0200.05211.94
5.3.20.0150.04311.71
5.3.10.0140.04211.67
5.3.00.0150.04111.66

preferences:
138.9 ms | 1394 KiB | 7 Q