3v4l.org

run code in 300+ PHP versions simultaneously
<?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'; $partyname = $writer->xpath('//MessageRecipient/PartyName'); $partyname[0]->FullName = 'ARESA'; //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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00616.75
8.3.50.0110.00722.17
8.3.40.0070.00719.27
8.3.30.0110.00319.45
8.3.20.0040.00420.59
8.3.10.0040.00423.95
8.3.00.0080.00019.38
8.2.180.0070.00716.88
8.2.170.0100.00722.96
8.2.160.0130.00720.82
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.98
8.2.110.0060.00319.62
8.2.100.0030.01018.22
8.2.90.0080.00019.59
8.2.80.0060.00318.00
8.2.70.0000.00817.88
8.2.60.0040.00418.40
8.2.50.0040.00418.10
8.2.40.0040.00420.45
8.2.30.0040.00418.70
8.2.20.0040.00418.12
8.2.10.0000.00818.47
8.2.00.0090.00018.24
8.1.280.0150.00325.92
8.1.270.0080.00024.20
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00622.61
8.1.230.0070.00418.20
8.1.220.0040.00418.16
8.1.210.0030.00518.77
8.1.200.0060.00317.60
8.1.190.0000.00817.60
8.1.180.0060.00318.10
8.1.170.0000.01018.97
8.1.160.0060.00322.27
8.1.150.0000.00719.00
8.1.140.0050.00217.71
8.1.130.0000.00718.17
8.1.120.0040.00417.87
8.1.110.0040.00417.71
8.1.100.0040.00417.62
8.1.90.0040.00417.72
8.1.80.0100.00017.89
8.1.70.0040.00417.72
8.1.60.0100.00018.00
8.1.50.0000.00817.91
8.1.40.0020.00517.91
8.1.30.0000.00817.89
8.1.20.0030.00617.84
8.1.10.0030.00618.02
8.1.00.0080.00017.79
8.0.300.0000.00818.77
8.0.290.0040.00417.13
8.0.280.0070.00018.81
8.0.270.0050.00217.71
8.0.260.0000.00917.67
8.0.250.0030.00317.32
8.0.240.0040.00417.15
8.0.230.0040.00417.33
8.0.220.0070.00017.25
8.0.210.0030.00317.28
8.0.200.0030.00317.14
8.0.190.0080.00017.26
8.0.180.0000.00817.12
8.0.170.0040.00417.33
8.0.160.0030.00517.13
8.0.150.0000.00716.97
8.0.140.0050.00217.16
8.0.130.0060.00013.75
8.0.120.0030.00517.19
8.0.110.0000.00717.10
8.0.100.0040.00417.02
8.0.90.0030.00517.11
8.0.80.0060.01017.29
8.0.70.0080.00017.21
8.0.60.0040.00417.14
8.0.50.0040.00417.15
8.0.30.0120.00917.37
8.0.20.0070.01217.40
8.0.10.0050.00317.48
8.0.00.0120.00617.18
7.4.330.0000.00615.49
7.4.320.0000.00616.78
7.4.300.0030.00317.01
7.4.290.0030.00316.93
7.4.280.0070.00016.87
7.4.270.0040.00416.95
7.4.260.0000.00717.02
7.4.250.0050.00316.93
7.4.240.0040.00416.79
7.4.230.0070.00017.05
7.4.220.0060.01316.97
7.4.210.0060.00916.92
7.4.200.0000.00716.79
7.4.190.0070.00016.95
7.4.160.0100.00717.07
7.4.150.0160.00317.40
7.4.140.0130.01117.86
7.4.130.0100.01016.96
7.4.120.0100.00716.73
7.4.110.0090.00916.74
7.4.100.0100.00716.96
7.4.90.0100.00716.86
7.4.80.0110.00619.39
7.4.70.0110.01116.85
7.4.60.0050.01116.80
7.4.50.0060.00316.96
7.4.40.0000.01816.96
7.4.30.0120.00416.87
7.4.00.0070.00315.20
7.3.330.0000.00613.66
7.3.320.0070.00013.45
7.3.310.0070.00016.68
7.3.300.0070.00016.68
7.3.290.0120.00316.82
7.3.280.0090.01016.72
7.3.270.0150.00317.40
7.3.260.0080.01116.81
7.3.250.0090.01016.62
7.3.240.0070.01016.75
7.3.230.0100.00616.95
7.3.210.0090.00917.07
7.3.200.0120.00319.39
7.3.190.0110.01116.78
7.3.180.0070.01116.70
7.3.170.0060.00916.86
7.3.160.0040.01616.75
7.3.120.0060.01015.11
7.2.330.0060.01116.99
7.2.320.0120.00616.84
7.2.310.0070.01417.23
7.2.300.0100.01317.10
7.2.290.0140.00517.05
7.2.60.0000.01617.31
7.2.00.0060.00819.63
7.1.200.0160.00415.77
7.1.100.0000.01018.19
7.1.70.0040.00417.46
7.1.60.0090.01619.46
7.1.50.0030.01017.14
7.1.00.0070.07322.63
7.0.200.0100.00016.61
7.0.140.0070.07022.10
7.0.60.0070.10020.08
7.0.50.0070.08018.07
7.0.40.0070.04320.57
7.0.30.0330.06720.36
7.0.20.0270.08320.33
7.0.10.0070.04320.44
7.0.00.0100.08720.43
5.6.280.0030.07321.17
5.6.210.0100.06720.64
5.6.200.0070.03718.38
5.6.190.0170.06020.65
5.6.180.0330.07720.85
5.6.170.0300.03720.75
5.6.160.0070.07720.86
5.6.150.0030.05318.29
5.6.140.0100.03718.32
5.6.130.0030.07718.35
5.6.120.0070.08021.09
5.6.110.0100.09321.20
5.6.100.0100.08021.29
5.6.90.0030.07321.25
5.6.80.0100.08320.65
5.5.350.0000.08320.61
5.5.340.0130.04718.19
5.5.330.0100.08720.30
5.5.320.3230.04020.56
5.5.310.0200.04020.65
5.5.300.0130.07718.21
5.5.290.0000.04318.16
5.5.280.0000.06020.92
5.5.270.0030.06320.89
5.5.260.0030.04320.92
5.5.250.0170.08020.77
5.5.240.0170.03320.35
5.4.450.0170.08019.70
5.4.440.0370.07019.64
5.4.430.0200.08319.43
5.4.420.0130.05019.61
5.4.410.0130.04019.25
5.4.400.0270.06719.06
5.4.390.0100.06019.30
5.4.380.0370.06019.09
5.4.370.0370.06719.37
5.4.360.0200.05019.05
5.4.350.0300.03319.34
5.4.340.0330.06319.24
5.4.320.0330.04019.38
5.4.310.0270.07319.27
5.4.300.0200.08019.09
5.4.290.0300.07019.37
5.4.280.0200.07319.34
5.4.270.0200.07319.10
5.4.260.0300.06319.21
5.4.250.0170.07719.21
5.4.240.0230.07719.23
5.4.230.0130.04019.37
5.4.220.0170.07719.23
5.4.210.0200.04019.08
5.4.200.0130.04019.23
5.4.190.0230.06719.21
5.4.180.0300.06319.33
5.4.170.0200.07319.36
5.4.160.0300.07019.03
5.4.150.0300.07319.38
5.4.140.0270.07016.50
5.4.130.0300.06316.73
5.4.120.0200.06316.64
5.4.110.0300.06716.71
5.4.100.0230.06716.66
5.4.90.0330.04316.51
5.4.80.0230.03316.61
5.4.70.0130.04016.65
5.4.60.0200.04316.64
5.4.50.0200.05016.65
5.4.40.0270.03316.60
5.4.30.0170.03716.61
5.4.20.0270.04016.46
5.4.10.0200.04716.45
5.4.00.0230.03715.92
5.3.290.0230.07714.85
5.3.280.0170.06714.76
5.3.270.0130.04014.80
5.3.260.0100.04714.70
5.3.250.0200.04714.80
5.3.240.0130.04714.68
5.3.230.0230.04014.82
5.3.220.0170.03714.82
5.3.210.0070.05314.63
5.3.200.0130.04014.63
5.3.190.0170.03714.68
5.3.180.0130.03714.67
5.3.170.0170.03714.67
5.3.160.0170.03314.81
5.3.150.0170.04714.59
5.3.140.0070.05314.73
5.3.130.0200.04714.79
5.3.120.0230.06714.58
5.3.110.0170.03714.75
5.3.100.0170.05014.11
5.3.90.0130.03714.08
5.3.80.0200.03014.09
5.3.70.0170.03714.09
5.3.60.0170.04014.02
5.3.50.0170.05014.04
5.3.40.0130.04013.98
5.3.30.0200.04013.97
5.3.20.0130.04013.75
5.3.10.0170.03313.73
5.3.00.0200.03013.84
5.2.170.0230.02711.40
5.2.160.0130.03711.22
5.2.150.0130.03011.20
5.2.140.0200.02311.40
5.2.130.0170.04711.32
5.2.120.0170.03011.18
5.2.110.0130.03011.19
5.2.100.0130.02711.27
5.2.90.0100.03011.30
5.2.80.0170.03311.33
5.2.70.0170.02311.26
5.2.60.0030.03711.28
5.2.50.0130.03311.18
5.2.40.0170.06011.16
5.2.30.0100.03011.06
5.2.20.0130.03011.16
5.2.10.0130.04310.97
5.2.00.0100.03011.02
5.1.60.0100.02710.10
5.1.50.0370.01710.08
5.1.40.0100.04710.06
5.1.30.0070.03710.50
5.1.20.0100.02710.42
5.1.10.0100.03010.24
5.1.00.0130.02710.33
5.0.50.0100.0178.70
5.0.40.0130.0378.50
5.0.30.0100.0578.54
5.0.20.0070.0238.29
5.0.10.0130.0138.30
5.0.00.0030.0378.26
4.4.90.0100.0178.02
4.4.80.0030.0208.02
4.4.70.0100.0278.02
4.4.60.0100.0338.02
4.4.50.0100.0278.02
4.4.40.0130.0338.02
4.4.30.0100.0308.02
4.4.20.0070.0178.02
4.4.10.0100.0308.02
4.4.00.0100.0508.02
4.3.110.0100.0278.02
4.3.100.0070.0178.02
4.3.90.0070.0208.02
4.3.80.0070.0238.02
4.3.70.0070.0178.02
4.3.60.0030.0238.02
4.3.50.0030.0238.02
4.3.40.0100.0508.02
4.3.30.0030.0308.02
4.3.20.0030.0278.02
4.3.10.0030.0208.02
4.3.00.0030.0178.02

preferences:
42.05 ms | 401 KiB | 5 Q