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'; 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.0140.00716.88
8.3.50.0100.00822.11
8.3.40.0090.00619.14
8.3.30.0150.00019.39
8.3.20.0040.00420.54
8.3.10.0040.00424.03
8.3.00.0000.00821.18
8.2.180.0200.00017.00
8.2.170.0090.00622.96
8.2.160.0070.00720.77
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0060.00321.42
8.2.110.0040.00422.62
8.2.100.0040.00818.03
8.2.90.0060.00319.46
8.2.80.0080.00017.97
8.2.70.0000.01017.75
8.2.60.0080.00418.30
8.2.50.0040.00418.07
8.2.40.0000.00820.32
8.2.30.0000.00718.67
8.2.20.0040.00417.93
8.2.10.0040.00418.35
8.2.00.0050.00517.99
8.1.280.0110.00425.92
8.1.270.0060.00324.21
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00724.22
8.1.230.0030.00819.49
8.1.220.0040.00417.88
8.1.210.0040.00418.77
8.1.200.0000.01317.60
8.1.190.0000.00817.50
8.1.180.0050.00318.10
8.1.170.0030.00518.75
8.1.160.0070.00022.42
8.1.150.0000.00818.91
8.1.140.0080.00017.72
8.1.130.0000.00718.29
8.1.120.0070.00017.84
8.1.110.0000.00717.62
8.1.100.0080.00017.54
8.1.90.0050.00217.62
8.1.80.0040.00417.60
8.1.70.0000.00717.76
8.1.60.0040.00417.93
8.1.50.0000.00917.93
8.1.40.0030.00517.89
8.1.30.0000.00718.05
8.1.20.0070.00018.01
8.1.10.0060.00317.70
8.1.00.0000.00817.79
8.0.300.0040.00418.77
8.0.290.0050.00317.43
8.0.280.0000.00718.72
8.0.270.0000.00717.57
8.0.260.0060.00317.48
8.0.250.0070.00017.21
8.0.240.0040.00417.34
8.0.230.0000.00717.16
8.0.220.0070.00017.17
8.0.210.0000.00717.28
8.0.200.0030.00317.32
8.0.190.0040.00417.36
8.0.180.0000.00717.29
8.0.170.0030.00617.29
8.0.160.0000.00717.27
8.0.150.0080.00017.03
8.0.140.0040.00417.23
8.0.130.0000.00513.68
8.0.120.0000.00817.05
8.0.110.0000.00817.31
8.0.100.0000.00717.11
8.0.90.0040.00417.18
8.0.80.0040.01217.09
8.0.70.0000.00717.08
8.0.60.0000.00717.30
8.0.50.0050.00317.18
8.0.30.0120.00717.34
8.0.20.0090.01217.41
8.0.10.0050.00317.21
8.0.00.0120.00517.04
7.4.330.0040.00415.00
7.4.320.0060.00016.90
7.4.300.0060.00016.91
7.4.290.0000.00716.80
7.4.280.0080.00016.91
7.4.270.0030.00316.99
7.4.260.0030.00316.96
7.4.250.0000.00816.89
7.4.240.0050.00216.91
7.4.230.0030.00316.81
7.4.220.0040.01416.79
7.4.210.0080.00616.88
7.4.200.0040.00416.84
7.4.190.0070.00016.94
7.4.160.0070.01016.70
7.4.150.0220.00417.40
7.4.140.0110.01017.86
7.4.130.0070.01116.89
7.4.120.0120.00716.93
7.4.110.0030.01316.85
7.4.100.0140.01116.86
7.4.90.0030.01416.79
7.4.80.0070.01019.39
7.4.70.0160.00616.80
7.4.60.0060.01616.93
7.4.50.0060.00316.83
7.4.40.0030.01316.88
7.4.30.0090.00916.70
7.4.00.0050.00514.96
7.3.330.0000.00713.45
7.3.320.0030.00313.45
7.3.310.0040.00416.39
7.3.300.0040.00416.48
7.3.290.0130.00916.58
7.3.280.0090.00816.49
7.3.270.0120.00617.40
7.3.260.0100.00816.47
7.3.250.0090.01016.62
7.3.240.0110.00716.68
7.3.230.0150.00616.74
7.3.210.0110.01116.63
7.3.200.0110.00619.39
7.3.190.0070.01116.71
7.3.180.0100.00716.54
7.3.170.0120.00916.55
7.3.160.0030.01316.57
7.3.120.0040.01114.88
7.2.330.0040.01716.77
7.2.320.0120.00616.62
7.2.310.0120.01316.91
7.2.300.0090.00917.08
7.2.290.0070.01116.72
7.2.60.0030.00916.94
7.2.00.0060.00919.70
7.1.200.0040.00815.86
7.1.100.0090.00317.96
7.1.70.0000.00717.23
7.1.60.0120.00919.46
7.1.50.0040.00717.05
7.1.00.0000.08022.66
7.0.200.0040.00416.99
7.0.140.0130.06322.27
7.0.60.0130.08020.16
7.0.50.0030.07018.02
7.0.40.0070.08720.26
7.0.30.0500.07020.41
7.0.20.0200.07720.21
7.0.10.0070.04320.35
7.0.00.0130.06320.45
5.6.280.0000.07721.23
5.6.210.0030.06320.92
5.6.200.0100.08318.32
5.6.190.0100.07320.55
5.6.180.0470.04320.59
5.6.170.0470.07320.76
5.6.160.0030.04320.59
5.6.150.0170.06718.36
5.6.140.0070.07318.37
5.6.130.0100.07318.39
5.6.120.0130.08021.16
5.6.110.0070.08321.27
5.6.100.0070.08321.19
5.6.90.0100.08021.22
5.6.80.0130.07320.59
5.5.350.0430.05720.70
5.5.340.0100.07318.14
5.5.330.0030.07320.67
5.5.320.0030.05720.47
5.5.310.0200.04720.39
5.5.300.0030.04318.12
5.5.290.0070.05318.16
5.5.280.0100.04321.13
5.5.270.0130.08720.89
5.5.260.0070.08321.12
5.5.250.0100.04020.77
5.5.240.0100.07320.55
5.4.450.0700.06019.39
5.4.440.0970.05719.71
5.4.430.1070.05719.54
5.4.420.1100.06019.59
5.4.410.0930.05319.64
5.4.400.1330.06019.43
5.4.390.1130.05319.38
5.4.380.0300.06018.75
5.4.370.0530.04018.75
5.4.360.0500.06318.93
5.4.350.0370.05318.91
5.4.340.0270.05718.59
5.4.320.0060.03612.72
5.4.310.0100.04712.72
5.4.300.0060.05012.72
5.4.290.0050.05512.72
5.4.280.0090.04612.61
5.4.270.0090.04412.61
5.4.260.0100.05112.62
5.4.250.0100.05912.61
5.4.240.0080.05712.62
5.4.230.0100.05612.61
5.4.220.0070.05712.61
5.4.210.0090.05212.61
5.4.200.0090.05112.61
5.4.190.0160.07512.60
5.4.180.0100.05012.61
5.4.170.0130.04812.62
5.4.160.0150.04212.61
5.4.150.0090.04412.61
5.4.140.0150.04712.30
5.4.130.0130.04512.28
5.4.120.0100.05012.24
5.4.110.0160.04312.24
5.4.100.0050.04812.24
5.4.90.0100.04612.24
5.4.80.0110.04912.23
5.4.70.0070.04412.23
5.4.60.0070.04612.23
5.4.50.0080.04912.23
5.4.40.0100.04912.21
5.4.30.0120.05012.22
5.4.20.0070.05712.21
5.4.10.0110.04712.21
5.4.00.0080.05211.70
5.3.290.0090.05012.98
5.3.280.0090.06212.91
5.3.270.0130.05512.92
5.3.260.0080.05812.92
5.3.250.0100.06612.92
5.3.240.0110.05212.91
5.3.230.0070.04512.91
5.3.220.0070.04312.88
5.3.210.0070.04412.88
5.3.200.0100.07312.88
5.3.190.0150.05412.88
5.3.180.0070.05712.88
5.3.170.0100.05212.88
5.3.160.0080.05212.88
5.3.150.0080.07012.88
5.3.140.0110.08712.88
5.3.130.0060.05812.86
5.3.120.0100.11612.86
5.3.110.0060.05812.86
5.3.100.0090.05012.35
5.3.90.0100.05312.34
5.3.80.0140.04612.32
5.3.70.0070.05412.32
5.3.60.0100.04812.31
5.3.50.0050.05412.26
5.3.40.0100.04912.26
5.3.30.0090.05112.22
5.3.20.0140.07612.00
5.3.10.0170.08311.97
5.3.00.0200.08511.95
5.2.170.0090.0479.45
5.2.160.0050.0359.46
5.2.150.0030.0379.46
5.2.140.0070.0359.45
5.2.130.0150.0369.41
5.2.120.0080.0319.41
5.2.110.0080.0299.41
5.2.100.0040.0319.41
5.2.90.0060.0319.41
5.2.80.0050.0339.40
5.2.70.0060.0399.40
5.2.60.0030.0349.36
5.2.50.0070.0319.32
5.2.40.0050.0329.30
5.2.30.0040.0359.28
5.2.20.0040.0339.27
5.2.10.0050.0309.19
5.2.00.0020.0349.05
5.1.60.0060.0358.33
5.1.50.0080.0358.33
5.1.40.0060.0378.30
5.1.30.0050.0438.66
5.1.20.0070.0408.68
5.1.10.0080.0378.40
5.1.00.0090.0378.40
5.0.50.0050.0326.87
5.0.40.0070.0296.73
5.0.30.0090.0506.54
5.0.20.0100.0266.52
5.0.10.0020.0336.49
5.0.00.0060.0416.49
4.4.90.0030.0244.78
4.4.80.0050.0234.75
4.4.70.0040.0244.76
4.4.60.0050.0234.75
4.4.50.0050.0244.77
4.4.40.0070.0344.71
4.4.30.0070.0204.76
4.4.20.0050.0244.84
4.4.10.0060.0264.85
4.4.00.0030.0344.76
4.3.110.0040.0224.67
4.3.100.0040.0214.66
4.3.90.0040.0224.63
4.3.80.0040.0344.58
4.3.70.0040.0224.63
4.3.60.0030.0234.62
4.3.50.0050.0224.63
4.3.40.0050.0344.54
4.3.30.0040.0233.28
4.3.20.0050.0213.25
4.3.10.0040.0213.22
4.3.00.0170.01016.12

preferences:
44.35 ms | 401 KiB | 5 Q