3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $writer = new SimpleXMLElement('<?xml version="1.0"?><dsr:SalesReportToSocietyMessage xmlns:dsr="http://ddex.net/xml/2010/dsr-main/32" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MessageSchemaVersionId="2010/dsr-main/32" xsi:schemaLocation="http://ddex.net/xml/2010/dsr-main/32 http://ddex.net/xml/2010/dsr-main/32/dsr-main.xsd"><MessageHeader><MessageThreadId>0000000024</MessageThreadId><MessageId>000000002401</MessageId><MessageSender><PartyId>PADPIDA2010071901R</PartyId><PartyName><FullName>RHAPSODY INTERNATIONAL, INC.</FullName></PartyName><TradingName>Premier Extra</TradingName></MessageSender><MessageRecipient><PartyId>SWAPFORSOCIETYID</PartyId><PartyName><FullName>SWAPFORSOCIETYNAME</FullName></PartyName></MessageRecipient><MessageCreatedDateTime>2014-06-30T14:14:29</MessageCreatedDateTime></MessageHeader><MessageNotificationPeriod><StartDate>2013-01-01</StartDate><EndDate>2013-03-31</EndDate></MessageNotificationPeriod></dsr:SalesReportToSocietyMessage>'); $messagerecipient = $writer->xpath('//MessageRecipient'); $messagerecipient[0]->PartyId = '1234'; //var_dump($messagerecipient); $output = $writer->asXML(); echo $output; ?>

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.10.0060.00616.87
7.3.00.0090.00516.70
7.2.130.0020.01117.01
7.2.120.0050.00717.18
7.2.110.0030.00716.87
7.2.100.0070.00716.93
7.2.90.0090.00616.93
7.2.80.0020.00917.07
7.2.70.0050.00517.25
7.2.60.0030.01017.06
7.2.50.0090.00416.85
7.2.40.0110.00516.80
7.2.30.0040.00717.35
7.2.20.0060.00717.13
7.2.10.0060.00716.96
7.2.00.0040.00717.88
7.1.250.0050.00716.05
7.1.200.0030.01216.00
7.1.100.0060.00818.36
7.1.70.0050.00217.02
7.1.60.0100.01419.46
7.1.50.0090.00917.07
7.1.00.0070.07022.66
7.0.200.0000.00716.67
7.0.140.0000.08022.21
7.0.100.0070.04720.22
7.0.90.0000.05320.02
7.0.80.0070.08020.02
7.0.70.0130.06020.18
7.0.60.0270.05720.07
7.0.50.0200.07720.52
7.0.40.0070.05720.30
7.0.30.0130.07020.29
7.0.20.0070.06320.23
7.0.10.0130.07020.21
7.0.00.0100.05320.32
5.6.280.0030.07320.97
5.6.250.0100.07320.69
5.6.240.0070.07720.67
5.6.230.0030.09020.67
5.6.220.0070.06720.87
5.6.210.0100.08020.67
5.6.200.0130.07021.24
5.6.190.0100.04321.31
5.6.180.0030.08321.12
5.6.170.0100.08321.20
5.6.160.0070.09021.20
5.6.150.0000.05721.16
5.6.140.0170.07321.32
5.6.130.0100.08021.24
5.6.120.0100.05021.32
5.6.110.0070.08021.11
5.6.100.0000.08021.18
5.6.90.0030.05021.19
5.6.80.0170.03320.62
5.6.70.0030.04320.55
5.6.60.0070.04020.55
5.6.50.0030.04020.69
5.6.40.0130.03020.66
5.6.30.0000.04720.62
5.6.20.0030.04720.63
5.6.10.0030.03720.71
5.6.00.0030.04320.63
5.5.380.0070.06020.46
5.5.370.0100.07320.61
5.5.360.0130.05320.51
5.5.350.0070.04020.52
5.5.340.0100.08021.13
5.5.330.0030.09021.06
5.5.320.0000.05020.95
5.5.310.0070.08321.04
5.5.300.0200.07321.11
5.5.290.0070.05320.94
5.5.280.0070.06721.04
5.5.270.0130.04320.95
5.5.260.0100.08021.03
5.5.250.0130.08020.72
5.5.240.0030.05320.38
5.5.230.0030.05720.42
5.5.220.0070.04020.47
5.5.210.0030.04320.28
5.5.200.0000.04320.26
5.5.190.0070.03720.43
5.5.180.0070.04320.36
5.5.160.0000.04020.27
5.5.150.0130.03320.27
5.5.140.0030.04320.29
5.5.130.0000.04720.27
5.5.120.0030.03720.37
5.5.110.0030.03720.45
5.5.100.0070.03720.20
5.5.90.0030.07720.31
5.5.80.0070.03320.23
5.5.70.0100.07320.18
5.5.60.0070.03720.23
5.5.50.0030.04020.20
5.5.40.0030.03720.34
5.5.30.0000.04320.21
5.5.20.0030.05020.14
5.5.10.0070.03720.27
5.5.00.0000.04320.21
5.4.450.0070.04319.53
5.4.440.0100.07319.32
5.4.430.0130.07019.61
5.4.420.0030.04019.59
5.4.410.0100.07719.44
5.4.400.0030.03319.25
5.4.390.0030.04319.45
5.4.380.0030.04019.00
5.4.370.0030.03719.25
5.4.360.0100.03719.10
5.4.350.0030.04319.20
5.4.340.0070.03719.00
5.4.320.0000.04719.00
5.4.310.0000.04319.18
5.4.300.0070.03719.25
5.4.290.0100.03318.99
5.4.280.0130.03719.23
5.4.270.0000.03319.19
5.4.260.0000.04319.02
5.4.250.0100.05719.29
5.4.240.0100.06719.23
5.4.230.0030.05319.27
5.4.220.0070.03319.23
5.4.210.0000.04018.99
5.4.200.0100.02319.29
5.4.190.0000.03319.23
5.4.180.0030.03019.17
5.4.170.0030.03719.18
5.4.160.0000.04719.23
5.4.150.0070.03719.42
5.4.140.0070.03316.51
5.4.130.0000.04016.50
5.4.120.0070.04016.52
5.4.110.0070.03716.51
5.4.100.0000.04016.71
5.4.90.0000.03716.63
5.4.80.0000.03716.60
5.4.70.0030.03316.58
5.4.60.0000.03316.59
5.4.50.0100.02316.69
5.4.40.0030.03716.66
5.4.30.0000.04316.48
5.4.20.0170.02316.59
5.4.10.0030.04016.55
5.4.00.0000.03716.02
5.3.290.0000.04714.70
5.3.280.0030.07314.73
5.3.270.0000.04014.64
5.3.260.0000.06014.83
5.3.250.0100.03014.76
5.3.240.0000.04014.63
5.3.230.0070.03714.73
5.3.220.0100.02314.77
5.3.210.0000.04014.69
5.3.200.0030.04014.60
5.3.190.0030.03314.79
5.3.180.0000.03314.71
5.3.170.0070.03714.79
5.3.160.0000.03714.77
5.3.150.0070.03714.76
5.3.140.0030.03314.61
5.3.130.0030.04014.75
5.3.120.0070.04014.77
5.3.110.0030.03014.76
5.3.100.0000.03314.20
5.3.90.0030.03014.05
5.3.80.0070.03314.00
5.3.70.0070.03314.03
5.3.60.0000.03314.21
5.3.50.0070.03014.14
5.3.40.0000.04014.14
5.3.30.0070.03014.07
5.3.20.0030.03013.91
5.3.10.0070.03013.66
5.3.00.0030.02713.81
5.2.170.0000.04011.54
5.2.160.0100.02011.54
5.2.150.0000.02711.54
5.2.140.0030.02311.54
5.2.130.0000.02711.54
5.2.120.0030.02711.54
5.2.110.0000.02711.54
5.2.100.0000.02711.54
5.2.90.0030.02311.54
5.2.80.0070.02011.54
5.2.70.0000.02711.54
5.2.60.0070.02011.54
5.2.50.0000.02711.54
5.2.40.0030.02311.54
5.2.30.0000.02711.54
5.2.20.0100.01711.54
5.2.10.0000.02311.54
5.2.00.0000.03011.54
5.1.60.0070.05011.54
5.1.50.0030.02711.54
5.1.40.0000.02311.54
5.1.30.0030.05011.54
5.1.20.0030.05311.54
5.1.10.0030.02711.54
5.1.00.0070.03711.54
5.0.50.0070.01711.54
5.0.40.0030.02011.54
5.0.30.0000.03311.54
5.0.20.0000.02311.54
5.0.10.0030.03711.54
5.0.00.0000.04011.54
4.4.90.0000.01311.54
4.4.80.0000.01311.54
4.4.70.0000.01311.54
4.4.60.0000.01311.54
4.4.50.0000.01311.54
4.4.40.0030.03711.54
4.4.30.0000.01311.54
4.4.20.0030.02711.54
4.4.10.0030.02311.54
4.4.00.0030.02311.54
4.3.110.0000.02011.54
4.3.100.0030.03311.54
4.3.90.0000.01711.54
4.3.80.0030.02311.54
4.3.70.0000.03011.54
4.3.60.0030.01311.54
4.3.50.0000.02011.54
4.3.40.0000.03711.54
4.3.30.0030.02311.54
4.3.20.0000.01711.54
4.3.10.0000.02311.54
4.3.00.0000.03311.54