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->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.0000.01516.75
8.3.50.0160.00522.10
8.3.40.0120.00318.91
8.3.30.0140.00019.34
8.3.20.0080.00020.66
8.3.10.0000.00823.90
8.3.00.0080.00019.40
8.2.180.0120.00317.13
8.2.170.0100.00722.96
8.2.160.0100.00320.89
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0140.00421.26
8.2.110.0030.00722.70
8.2.100.0090.00318.03
8.2.90.0050.00518.22
8.2.80.0040.00417.97
8.2.70.0000.00917.88
8.2.60.0090.00518.05
8.2.50.0000.00818.07
8.2.40.0000.00820.32
8.2.30.0040.00418.66
8.2.20.0000.00717.93
8.2.10.0040.00418.30
8.2.00.0000.00917.97
8.1.280.0120.00325.92
8.1.270.0080.00024.22
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00320.94
8.1.230.0110.00021.28
8.1.220.0060.00318.04
8.1.210.0000.00819.19
8.1.200.0100.00717.50
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0050.00318.97
8.1.160.0000.00822.37
8.1.150.0000.00818.93
8.1.140.0040.00417.73
8.1.130.0000.00818.17
8.1.120.0070.00017.86
8.1.110.0060.00317.76
8.1.100.0040.00417.62
8.1.90.0040.00417.65
8.1.80.0030.00717.73
8.1.70.0050.00317.68
8.1.60.0000.00817.95
8.1.50.0030.00517.76
8.1.40.0080.00017.81
8.1.30.0030.00617.82
8.1.20.0070.00018.02
8.1.10.0090.00017.87
8.1.00.0000.00817.74
8.0.300.0040.00420.22
8.0.290.0040.00417.41
8.0.280.0000.00718.69
8.0.270.0000.00817.61
8.0.260.0000.00817.59
8.0.250.0000.00717.17
8.0.240.0040.00417.24
8.0.230.0000.00717.24
8.0.220.0000.00817.04
8.0.210.0000.00717.25
8.0.200.0040.00417.13
8.0.190.0050.00317.36
8.0.180.0050.00317.20
8.0.170.0040.00417.19
8.0.160.0030.00317.25
8.0.150.0000.00717.20
8.0.140.0040.00417.04
8.0.130.0060.00013.70
8.0.120.0000.00817.21
8.0.110.0000.00717.30
8.0.100.0000.00717.20
8.0.90.0000.00817.22
8.0.80.0090.00617.26
8.0.70.0040.00417.17
8.0.60.0080.00016.95
8.0.50.0050.00217.26
8.0.30.0090.01017.45
8.0.20.0140.00817.40
8.0.10.0000.00817.23
8.0.00.0070.01117.05
7.4.330.0000.00815.00
7.4.320.0020.00516.84
7.4.300.0030.00316.86
7.4.290.0000.00716.86
7.4.280.0030.00316.82
7.4.270.0050.00316.89
7.4.260.0030.00316.91
7.4.250.0040.00416.91
7.4.240.0040.00416.79
7.4.230.0000.00716.89
7.4.220.0150.00416.78
7.4.210.0070.00716.88
7.4.200.0050.00316.90
7.4.190.0000.00716.72
7.4.160.0140.00316.88
7.4.150.0180.00317.40
7.4.140.0120.00617.86
7.4.130.0120.00616.81
7.4.120.0110.00716.82
7.4.110.0060.01116.77
7.4.100.0110.01116.80
7.4.90.0060.01116.74
7.4.80.0120.00619.39
7.4.70.0160.00616.69
7.4.60.0140.00716.61
7.4.50.0030.00616.91
7.4.40.0150.00316.85
7.4.30.0100.00716.64
7.4.00.0090.00615.16
7.3.330.0000.00513.25
7.3.320.0030.00313.27
7.3.310.0000.00716.47
7.3.300.0030.00316.57
7.3.290.0090.00916.56
7.3.280.0100.00816.52
7.3.270.0170.00317.40
7.3.260.0120.00616.63
7.3.250.0150.00816.56
7.3.240.0070.01416.48
7.3.230.0030.01716.64
7.3.210.0090.00916.39
7.3.200.0070.01719.39
7.3.190.0090.00916.73
7.3.180.0060.00916.53
7.3.170.0060.01016.90
7.3.160.0100.00616.55
7.3.120.0070.01015.00
7.3.10.0100.00316.66
7.3.00.0120.00316.56
7.2.330.0080.01017.14
7.2.320.0030.01416.99
7.2.310.0140.01116.80
7.2.300.0120.00916.98
7.2.290.0150.00716.61
7.2.130.0040.01216.78
7.2.120.0100.00717.03
7.2.110.0070.00717.03
7.2.100.0070.00716.81
7.2.90.0070.00716.90
7.2.80.0120.00016.88
7.2.70.0100.00317.04
7.2.60.0040.01117.14
7.2.50.0110.00416.95
7.2.40.0110.00316.96
7.2.30.0030.00716.86
7.2.20.0000.01416.91
7.2.10.0060.00916.94
7.2.00.0000.01116.98
7.1.250.0060.00615.79
7.1.100.0040.00817.89
7.1.70.0030.00917.27
7.1.60.0110.01419.46
7.1.50.0040.00816.99
7.1.00.0000.08022.62
7.0.200.0060.00916.75
7.0.140.0000.07722.21
7.0.60.0100.07720.08
7.0.50.0000.04718.04
7.0.40.0030.04320.18
7.0.30.0300.04320.50
7.0.20.0470.06320.41
7.0.10.0070.06720.21
7.0.00.0030.04320.47
5.6.280.0030.07321.30
5.6.210.0170.07720.79
5.6.200.0200.06318.29
5.6.190.0030.04720.85
5.6.180.0200.08320.59
5.6.170.0330.07320.72
5.6.160.0130.08020.57
5.6.150.0070.08718.32
5.6.140.0100.04018.37
5.6.130.0100.08018.42
5.6.120.0070.08721.20
5.6.110.0230.07721.26
5.6.100.0070.08021.25
5.6.90.0200.07021.15
5.6.80.0070.03720.64
5.5.350.3570.05720.58
5.5.340.0070.06318.16
5.5.330.0070.08720.50
5.5.320.0200.05320.43
5.5.310.0330.04720.40
5.5.300.0070.05018.21
5.5.290.0170.07318.18
5.5.280.0030.08320.93
5.5.270.0100.08721.09
5.5.260.0030.04321.07
5.5.250.0100.04020.78
5.5.240.0200.08020.31
5.4.450.0470.06319.38
5.4.440.0230.08019.41
5.4.430.0400.06719.72
5.4.420.0300.04019.71
5.4.410.0330.03019.65
5.4.400.0330.02719.07
5.4.390.0270.03319.06
5.4.380.0230.03719.36
5.4.370.0370.05719.30
5.4.360.0270.07319.08
5.4.350.0230.04719.07
5.4.340.0330.04019.08
5.4.320.0430.06019.23
5.4.310.0330.04319.27
5.4.300.0400.06019.29
5.4.290.0300.04719.08
5.4.280.0370.07019.09
5.4.270.0500.05319.08
5.4.260.0400.03319.30
5.4.250.0230.04719.25
5.4.240.0370.06719.22
5.4.230.0430.07019.04
5.4.220.0400.06319.23
5.4.210.0370.05019.22
5.4.200.0430.04719.34
5.4.190.0370.04719.35
5.4.180.0330.07319.09
5.4.170.0370.04719.35
5.4.160.0400.07019.25
5.4.150.0370.05019.43
5.4.140.0370.06716.50
5.4.130.0470.05016.63
5.4.120.0230.04016.46
5.4.110.0430.05716.71
5.4.100.0370.06316.65
5.4.90.0370.04316.51
5.4.80.0430.06016.64
5.4.70.0400.05716.66
5.4.60.0370.03716.51
5.4.50.0330.05316.48
5.4.40.0300.06016.68
5.4.30.0370.06016.60
5.4.20.0430.06316.69
5.4.10.0400.06016.36
5.4.00.0500.03315.92
5.3.290.0470.06014.72
5.3.280.0430.07014.75
5.3.270.0400.04714.80
5.3.260.0370.05014.85
5.3.250.0270.04714.86
5.3.240.0300.05714.71
5.3.230.0270.04714.65
5.3.220.0300.03714.81
5.3.210.0200.04314.77
5.3.200.0230.05714.79
5.3.190.0300.04014.67
5.3.180.0370.06014.62
5.3.170.0300.05014.63
5.3.160.0330.03714.67
5.3.150.0300.05714.78
5.3.140.0300.07014.67
5.3.130.0230.05314.81
5.3.120.0230.03714.60
5.3.110.0370.04014.71
5.3.100.0300.04014.28
5.3.90.0370.04314.07
5.3.80.0270.03314.12
5.3.70.0200.04014.28
5.3.60.0300.05014.08
5.3.50.0300.06714.05
5.3.40.0300.03014.06
5.3.30.0270.06313.98
5.3.20.0370.06313.80
5.3.10.0230.06313.86
5.3.00.0330.03713.70
5.2.170.0270.04012.43
5.2.160.0270.04312.43
5.2.150.0300.03012.43
5.2.140.0170.03312.43
5.2.130.0200.02712.43
5.2.120.0300.05012.43
5.2.110.0170.03312.43
5.2.100.0270.04712.43
5.2.90.0230.04012.43
5.2.80.0230.06012.43
5.2.70.0230.03312.43
5.2.60.0270.03012.43
5.2.50.0300.05312.43
5.2.40.0270.03712.43
5.2.30.0200.03312.43
5.2.20.0170.03712.43
5.2.10.0170.03012.43
5.2.00.0270.02312.43
5.1.60.0200.04712.43
5.1.50.0300.04012.43
5.1.40.0270.02712.43
5.1.30.0230.03012.43
5.1.20.0200.02712.43
5.1.10.0230.04012.43
5.1.00.0370.02012.43
5.0.50.0100.03312.43
5.0.40.0170.02312.43
5.0.30.0070.05012.43
5.0.20.0270.01312.43
5.0.10.0130.02312.43
5.0.00.0200.05012.43
4.4.90.0170.02312.43
4.4.80.0100.01712.43
4.4.70.0230.02012.43
4.4.60.0200.01712.43
4.4.50.0170.01712.43
4.4.40.0200.04712.43
4.4.30.0200.01312.43
4.4.20.0100.03712.43
4.4.10.0170.01712.43
4.4.00.0130.05012.43
4.3.110.0130.02012.43
4.3.100.0100.03012.43
4.3.90.0100.02712.43
4.3.80.0170.04312.43
4.3.70.0130.02012.43
4.3.60.0130.03312.43
4.3.50.0100.02312.43
4.3.40.0130.03312.43
4.3.30.0070.02012.43
4.3.20.0070.02312.43
4.3.10.0070.01712.43
4.3.00.0030.01712.43

preferences:
38.56 ms | 401 KiB | 5 Q