3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = '<received> <![CDATA[ from DM2PR07MB1563.namprd07.prod.outlook.com ([::1]) by DM2PR07MB1563.namprd07.prod.outlook.com ([fe80::645f:4ee6:7808:6c7f%13]) with Microsoft SMTP Server id 15.01.1220.018; Fri, 7 Jul 2017 19:27:18 +0000 ]]> </received>'; $domxml = new DOMDocument(); $domxml->loadXML($xml);

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.2.90.1150.00714.80
7.2.80.0170.00514.39
7.2.70.3070.00615.06
7.2.60.0220.00615.06
7.2.50.0170.01115.01
7.2.40.2230.00714.79
7.2.30.0100.00714.94
7.2.20.0200.00714.73
7.2.10.0680.00614.92
7.2.00.0590.01315.10
7.1.210.0780.01313.84
7.1.200.1400.01313.85
7.1.190.0310.01013.84
7.1.180.0230.00613.82
7.1.170.1920.00714.00
7.1.160.2180.00713.92
7.1.150.0220.00613.55
7.1.140.0070.01013.81
7.1.130.0120.00613.86
7.1.120.0100.00413.86
7.1.110.0160.00714.11
7.1.100.0060.00613.61
7.1.90.0330.00913.93
7.1.80.0920.00013.89
7.1.70.0140.01413.88
7.1.60.0310.00332.01
7.1.50.0360.00831.84
7.1.40.0280.00931.73
7.1.30.0290.00431.96
7.1.20.1580.00731.75
7.1.10.1570.00613.68
7.1.00.1660.00713.86
7.0.310.0220.00613.24
7.0.300.1570.01313.52
7.0.290.3600.00013.26
7.0.280.0170.01013.37
7.0.270.0140.00313.27
7.0.260.0100.01013.69
7.0.250.0670.00013.46
7.0.240.0110.00013.58
7.0.230.0120.00713.55
7.0.220.1720.00613.38
7.0.210.0610.00013.41
7.0.200.0060.00913.33
7.0.190.0740.00313.31
7.0.180.1670.00913.35
7.0.170.2010.00713.61
7.0.160.1930.00313.57
7.0.150.0170.00313.65
7.0.140.1610.01013.49
7.0.130.1530.00613.72
7.0.120.0430.00913.62
7.0.110.0070.00713.69
7.0.100.0090.00913.56
7.0.90.0090.00713.66
7.0.80.2190.00613.38
7.0.70.1890.00913.38
7.0.60.1340.00313.28
7.0.50.1820.00013.70
7.0.40.1040.01013.56
7.0.30.0080.00813.43
7.0.20.0140.00413.70
7.0.10.2110.01013.55
7.0.00.0820.01313.68
hhvm-3.22.00.0790.14589.88
hhvm-3.21.30.0940.13389.80
hhvm-3.21.00.0940.13889.46
hhvm-3.20.20.0800.18289.66
hhvm-3.19.20.0870.13588.70
hhvm-3.18.50.0720.16787.55
hhvm-3.18.40.1030.15587.83
hhvm-3.15.40.0500.14784.78
5.6.300.0030.00814.47