3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpinfo(); $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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0140.01098.97
7.3.0rc30.0170.00416.74
7.3.0rc20.0770.01214.74
7.3.0rc10.0370.00414.98
7.3.0beta30.1070.00312.67
7.3.0beta20.0760.00612.67
7.3.0beta10.1150.00012.67
7.3.0alpha40.1220.00612.67
7.3.0alpha30.1050.00312.67
7.3.0alpha20.0740.00012.67
7.3.0alpha10.0120.00512.67
7.2.100.1030.00014.98
7.2.90.0720.01214.96
7.2.80.0620.00914.98
7.2.70.0200.00315.16
7.2.60.0820.01315.32
7.2.50.0680.00615.25
7.2.40.0730.00915.38
7.2.30.0670.01115.22
7.2.20.0580.00215.08
7.2.10.0570.00815.17
7.2.00.0860.00715.08
7.1.220.0710.00613.91
7.1.210.0600.00313.89
7.1.200.0780.00813.95
7.1.190.0380.00314.03
7.1.180.0930.00313.99
7.1.170.0420.01014.18
7.1.160.0950.00014.09
7.1.150.0820.01114.05
7.1.140.0590.00814.07
7.1.130.0720.00614.13
7.1.120.0640.01113.82
7.1.110.0660.01213.86
7.1.100.0750.00913.80
7.1.90.0370.00414.25
7.1.80.0190.00313.82
7.1.70.0830.00314.05
7.1.60.0360.00632.04
7.1.50.0450.01732.04
7.1.40.0360.00331.93
7.1.30.0920.01131.91
7.1.20.1770.01631.88
7.1.10.0210.00613.80
7.1.00.0100.00713.91
7.0.310.0680.01413.84
7.0.300.0690.00613.54
7.0.290.1030.00313.71
7.0.280.1050.01013.48
7.0.270.0790.00913.63
7.0.260.0120.00913.74
7.0.250.0780.00013.47
7.0.240.0570.01013.79
7.0.230.0550.00013.79
7.0.220.0820.00613.70
7.0.210.0620.00313.98
7.0.200.0580.00913.36
7.0.190.0130.01013.84
7.0.180.0680.00913.64
7.0.170.0690.00613.48
7.0.160.0090.01413.69
7.0.150.0340.01013.74
7.0.140.0120.00313.51
7.0.130.0650.00313.54
7.0.120.1380.00913.33
7.0.110.0160.00213.64
7.0.100.0270.00013.54
7.0.90.0370.00413.66
7.0.80.0640.00613.44
7.0.70.0660.00013.40
7.0.60.0710.00513.29
7.0.50.0870.00313.91
7.0.40.1690.00313.80
7.0.30.0850.00613.71
7.0.20.1410.00513.79
7.0.10.0580.00914.03
7.0.00.0680.01013.83
hhvm-3.22.00.1780.20390.59
hhvm-3.21.30.1080.20690.50
hhvm-3.21.00.1650.20290.51
hhvm-3.20.20.1210.17990.34
hhvm-3.19.20.1080.20189.13
hhvm-3.18.50.0990.19888.40
hhvm-3.18.40.1500.18988.86
hhvm-3.17.30.1230.16287.78
hhvm-3.15.40.0840.21484.97
hhvm-3.13.20.0870.15396.36
hhvm-3.12.140.1180.17995.37
hhvm-3.11.10.1200.19587.75
hhvm-3.10.10.1020.19884.47
5.6.380.0040.01314.68
5.6.370.0100.00814.34
5.6.360.0080.00814.21
5.6.350.0180.00514.29
5.6.340.0170.00314.36
5.6.330.0110.00714.55
5.6.320.0100.01314.10
5.6.310.0000.01714.63
5.6.300.0040.01214.26
5.6.290.0120.00414.21
5.6.280.0130.00414.01
5.6.270.0080.00814.22
5.6.260.0120.00614.07
5.6.250.0140.00814.38
5.6.240.0100.00514.33
5.6.230.0080.00514.54
5.6.220.0160.00513.87
5.6.210.0070.01314.14
5.6.200.0070.01114.52
5.6.190.0180.00214.32
5.6.180.0130.00414.68
5.6.170.0170.00414.45
5.6.160.0080.00814.44
5.6.150.0100.00614.58
5.6.140.0090.00914.49
5.6.130.0090.00914.42
5.6.120.0130.00814.39
5.6.110.0130.00814.42
5.6.100.0180.01014.34
5.6.90.0130.00314.24
5.6.80.0150.01114.21
5.6.70.0110.00714.26
5.6.60.0090.00914.16
5.6.50.0130.00814.48
5.6.40.0090.00614.40
5.6.30.0000.01814.26
5.6.20.0180.00514.33
5.6.10.0080.01214.04
5.6.00.0080.01314.41
5.5.380.0040.00712.67
5.5.370.0030.01012.67
5.5.360.0000.01412.67
5.5.350.0090.00312.67
5.5.340.0170.00012.67
5.5.330.0090.00612.67
5.5.320.0030.01112.67
5.5.310.0100.00312.67
5.5.300.0120.00012.67
5.5.290.0120.00012.67
5.5.280.0120.00312.67
5.5.270.0120.00412.67
5.5.260.0100.00512.67
5.5.250.0050.00512.67
5.5.240.0060.01412.67
5.5.230.0050.00912.67
5.5.220.0090.00412.67
5.5.210.0050.01112.67
5.5.200.0080.00412.67
5.5.190.0080.00412.67
5.5.180.0130.00412.67
5.5.170.0140.00614.29
5.5.160.0060.01112.67
5.5.150.0080.00812.67
5.5.140.0120.00412.67
5.5.130.0120.00012.67
5.5.120.0170.00512.67
5.5.110.0070.00712.67
5.5.100.0160.00012.67
5.5.90.0000.01212.67
5.5.80.0110.00512.67
5.5.70.0070.00712.67
5.5.60.0110.00512.67
5.5.50.0090.00712.67
5.5.40.0120.00612.67
5.5.30.0060.00612.67
5.5.20.0050.00912.67
5.5.10.0000.01112.67
5.5.00.0080.00812.67
5.4.450.0000.01412.67
5.4.440.0140.00012.67
5.4.430.0080.00812.67
5.4.420.0090.00512.67
5.4.410.0060.00612.67
5.4.400.0120.00912.67
5.4.390.0080.00512.67
5.4.380.0040.01212.67
5.4.370.0060.00612.67
5.4.360.0120.00012.67
5.4.350.0160.00012.67
5.4.340.0110.00312.67
5.4.330.0080.00612.67
5.4.320.0050.01112.67
5.4.310.0130.00412.67
5.4.300.0040.00912.67
5.4.290.0030.00812.67
5.4.280.0070.01412.67
5.4.270.0120.00012.67
5.4.260.0100.00012.67
5.4.250.0060.00312.67
5.4.240.0050.01112.67
5.4.230.0100.00512.67
5.4.220.0050.01012.67
5.4.210.0040.01112.67
5.4.200.0100.00312.67
5.4.190.0110.00012.67
5.4.180.0030.01412.67
5.4.170.0040.00812.67
5.4.160.0120.00012.67
5.4.150.0100.00512.67
5.4.140.0040.01112.67
5.4.130.0080.00412.67
5.4.120.0110.00912.67
5.4.110.0150.00912.67
5.4.100.0140.00012.67
5.4.90.0090.00412.67
5.4.80.0120.00212.67
5.4.70.0090.00512.67
5.4.60.0000.01212.67
5.4.50.0030.01012.67
5.4.40.0100.00212.67
5.4.30.0050.01012.67
5.4.20.0060.00612.67
5.4.10.0110.00712.67
5.4.00.0120.00612.67
5.3.290.0080.00812.67
5.3.280.0060.01012.67
5.3.270.0110.00012.67
5.3.260.0160.00012.67
5.3.250.0110.00412.67
5.3.240.0110.00212.67
5.3.230.0080.00312.67
5.3.220.0110.01112.67
5.3.210.0060.00712.67
5.3.200.0040.00812.67
5.3.190.0070.00912.67
5.3.180.0150.00012.67
5.3.170.0110.00312.67
5.3.160.0060.00612.67
5.3.150.0050.00812.67
5.3.140.0080.00412.67
5.3.130.0090.00212.67
5.3.120.0210.00412.67
5.3.110.0150.00412.67
5.3.100.0090.00612.67
5.3.90.0170.00012.67
5.3.80.0080.00512.67
5.3.70.0100.00312.67
5.3.60.0080.00812.67
5.3.50.0060.00912.67
5.3.40.0130.00312.67
5.3.30.0050.00812.67
5.3.20.0100.00512.67
5.3.10.0090.00512.67
5.3.00.0040.01112.67