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 = trim(getPartyID($ingestion_dbc, $society_name)); $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.40.0040.01119.02
8.3.30.0120.00619.46
8.3.20.0030.00620.41
8.3.10.0070.00023.90
8.3.00.0040.00421.27
8.2.170.0070.00722.96
8.2.160.0070.00720.82
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0150.00321.29
8.2.110.0030.00622.83
8.2.100.0090.00320.02
8.2.90.0040.00419.42
8.2.80.0040.00417.97
8.2.70.0120.00617.34
8.2.60.0110.00018.02
8.2.50.0040.00418.07
8.2.40.0000.00820.32
8.2.30.0070.00018.51
8.2.20.0080.00017.99
8.2.10.0050.00318.30
8.2.00.0050.00318.08
8.1.270.0060.00324.29
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.34
8.1.230.0070.00319.42
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0080.00417.73
8.1.190.0080.00017.61
8.1.180.0040.00418.10
8.1.170.0030.00718.93
8.1.160.0070.00022.31
8.1.150.0000.00718.96
8.1.140.0040.00417.69
8.1.130.0030.00318.25
8.1.120.0000.00717.63
8.1.110.0000.00817.83
8.1.100.0030.00617.70
8.1.90.0040.00417.62
8.1.80.0040.00417.84
8.1.70.0030.00317.79
8.1.60.0030.00517.77
8.1.50.0040.00417.93
8.1.40.0000.00817.90
8.1.30.0000.00918.12
8.1.20.0000.00718.07
8.1.10.0050.00318.00
8.1.00.0000.00718.00
8.0.300.0000.00718.77
8.0.290.0000.01017.55
8.0.280.0000.00718.67
8.0.270.0030.00317.63
8.0.260.0030.00717.54
8.0.250.0040.00417.20
8.0.240.0040.00417.17
8.0.230.0000.00717.40
8.0.220.0040.00417.15
8.0.210.0070.00017.18
8.0.200.0060.00017.40
8.0.190.0080.00017.38
8.0.180.0040.00417.17
8.0.170.0000.00817.21
8.0.160.0000.00717.17
8.0.150.0000.00717.13
8.0.140.0000.00817.09
8.0.130.0060.00013.76
8.0.120.0050.00317.28
8.0.110.0000.00717.38
8.0.100.0070.00017.25
8.0.90.0040.00417.16
8.0.80.0030.01817.24
8.0.70.0030.00317.23
8.0.60.0040.00417.35
8.0.50.0040.00417.36
8.0.30.0200.00217.33
8.0.20.0120.00717.48
8.0.10.0000.00817.25
8.0.00.0100.00817.26
7.4.330.0070.00015.38
7.4.320.0030.00316.93
7.4.300.0060.00016.99
7.4.290.0040.00416.84
7.4.280.0080.00016.97
7.4.270.0000.00716.97
7.4.260.0000.00716.96
7.4.250.0040.00416.69
7.4.240.0060.00116.99
7.4.230.0000.00716.77
7.4.220.0060.01116.96
7.4.210.0050.01016.95
7.4.200.0080.00016.88
7.4.190.0000.00717.09
7.4.160.0050.01116.69
7.4.150.0160.01017.40
7.4.140.0170.00417.86
7.4.130.0110.00516.82
7.4.120.0120.00516.90
7.4.110.0120.00916.67
7.4.100.0100.01016.90
7.4.90.0130.00716.82
7.4.80.0090.00919.39
7.4.70.0180.00016.98
7.4.60.0090.00916.92
7.4.50.0030.00616.82
7.4.40.0120.00916.80
7.4.30.0140.00916.93
7.4.00.0060.01215.32
7.3.330.0000.00613.57
7.3.320.0040.00313.29
7.3.310.0030.00516.71
7.3.300.0070.00016.60
7.3.290.0120.00316.67
7.3.280.0090.00716.58
7.3.270.0090.00917.40
7.3.260.0100.01416.66
7.3.250.0110.00816.79
7.3.240.0060.01216.99
7.3.230.0130.01016.60
7.3.210.0120.00616.76
7.3.200.0190.00619.39
7.3.190.0090.00916.71
7.3.180.0080.00816.74
7.3.170.0060.01016.98
7.3.160.0090.00616.82
7.3.120.0060.01014.88
7.3.10.0130.00316.83
7.3.00.0030.01216.63
7.2.330.0120.00616.80
7.2.320.0030.01916.84
7.2.310.0130.00316.82
7.2.300.0170.00016.88
7.2.290.0150.00316.86
7.2.130.0190.00316.62
7.2.120.0040.00816.75
7.2.110.0090.00616.73
7.2.100.0030.00616.89
7.2.90.0080.00416.67
7.2.80.0060.00816.85
7.2.70.0070.00716.76
7.2.60.0040.01116.83
7.2.50.0100.00316.93
7.2.40.0040.00716.59
7.2.30.0070.01016.93
7.2.20.0000.01516.70
7.2.10.0060.00616.84
7.2.00.0060.00518.29
7.1.250.0040.00715.53
7.1.200.0080.00315.71
7.1.100.0030.01417.77
7.1.70.0000.00716.98
7.1.60.0110.01519.46
7.1.50.0000.02116.98
7.1.00.0070.07322.57
7.0.200.0040.00416.99
7.0.140.0070.07022.10
7.0.60.0130.06320.23
7.0.50.0070.03718.13
7.0.40.0100.04020.20
7.0.30.0400.07020.38
7.0.20.0300.07720.21
7.0.10.0070.04320.33
7.0.00.0000.04320.42
5.6.280.0100.06721.13
5.6.210.0070.08020.83
5.6.200.0100.07018.40
5.6.190.0100.07320.54
5.6.180.0100.06320.48
5.6.170.0330.07020.60
5.6.160.0030.08020.58
5.6.150.0070.05018.38
5.6.140.0130.07318.37
5.6.130.0030.08318.44
5.6.120.0130.08021.13
5.6.110.0100.08321.27
5.6.100.0100.05021.23
5.6.90.0130.06321.15
5.6.80.0130.07320.64
5.5.350.0000.04020.62
5.5.340.0000.05718.06
5.5.330.0100.07320.64
5.5.320.0330.07720.57
5.5.310.0200.04720.46
5.5.300.0070.06018.13
5.5.290.0100.06018.09
5.5.280.0030.04721.09
5.5.270.0130.07020.94
5.5.260.0030.04320.95
5.5.250.0030.08320.74
5.5.240.0000.08020.36
5.4.450.0230.05719.42
5.4.440.0370.06719.60
5.4.430.0130.05319.65
5.4.420.0870.06019.59
5.4.410.0730.05019.31
5.4.400.0070.07319.25
5.4.390.1030.05719.49
5.4.380.0270.05718.88
5.4.370.0270.05318.87
5.4.360.0270.05318.80
5.4.350.0430.04718.89
5.4.340.0330.05018.80
5.4.320.0100.04612.73
5.4.310.0070.03812.72
5.4.300.0070.05112.72
5.4.290.0120.04112.72
5.4.280.0060.04512.62
5.4.270.0090.04312.62
5.4.260.0060.06012.62
5.4.250.0100.05712.62
5.4.240.0110.05412.62
5.4.230.0120.05412.61
5.4.220.0070.05812.61
5.4.210.0130.06012.61
5.4.200.0110.05112.61
5.4.190.0080.04312.61
5.4.180.0080.03612.61
5.4.170.0060.03912.63
5.4.160.0080.03712.62
5.4.150.0080.04212.61
5.4.140.0110.04712.30
5.4.130.0080.04512.29
5.4.120.0060.05112.24
5.4.110.0100.04212.24
5.4.100.0090.04512.24
5.4.90.0100.05112.24
5.4.80.0070.04212.24
5.4.70.0090.04712.23
5.4.60.0080.05212.24
5.4.50.0160.05012.23
5.4.40.0080.04612.22
5.4.30.0100.04512.21
5.4.20.0100.04612.22
5.4.10.0050.05012.22
5.4.00.0070.04811.70
5.3.290.0100.04912.99
5.3.280.0090.04712.91
5.3.270.0070.05412.93
5.3.260.0090.05012.93
5.3.250.0070.05112.93
5.3.240.0090.04712.93
5.3.230.0070.05112.92
5.3.220.0080.05312.89
5.3.210.0070.05712.89
5.3.200.0100.05512.89
5.3.190.0130.04912.89
5.3.180.0070.05212.88
5.3.170.0090.04812.88
5.3.160.0080.05012.88
5.3.150.0090.05112.88
5.3.140.0070.06112.88
5.3.130.0100.05712.87
5.3.120.0110.05612.87
5.3.110.0090.05312.87
5.3.100.0050.05612.36
5.3.90.0150.05312.34
5.3.80.0130.05212.33
5.3.70.0070.05912.33
5.3.60.0080.05612.31
5.3.50.0090.05612.26
5.3.40.0090.05712.26
5.3.30.0100.05712.22
5.3.20.0140.05612.00
5.3.10.0110.04611.97
5.3.00.0060.05811.96
5.2.170.0090.0429.46
5.2.160.0140.0379.46
5.2.150.0110.0479.46
5.2.140.0110.0459.46
5.2.130.0230.0829.41
5.2.120.0160.0709.42
5.2.110.0050.0639.43
5.2.100.0070.0459.42
5.2.90.0060.0459.41
5.2.80.0110.0419.41
5.2.70.0070.0469.41
5.2.60.0040.0459.36
5.2.50.0060.0459.33
5.2.40.0110.0359.31
5.2.30.0040.0439.29
5.2.20.0070.0419.27
5.2.10.0070.0429.20
5.2.00.0180.0899.05
5.1.60.0100.0328.33
5.1.50.0100.0318.33
5.1.40.0060.0358.31
5.1.30.0090.0808.66
5.1.20.0060.0748.68
5.1.10.0120.0678.39
5.1.00.0160.0568.39
5.0.50.0080.0546.87
5.0.40.0170.0636.73
5.0.30.0120.0586.55
5.0.20.0130.0296.52
5.0.10.0120.0346.50
5.0.00.0070.0436.49
4.4.90.0050.0584.78
4.4.80.0090.0324.76
4.4.70.0060.0424.76
4.4.60.0080.0344.75
4.4.50.0120.0414.77
4.4.40.0100.0574.71
4.4.30.0100.0344.76
4.4.20.0120.0394.84
4.4.10.0070.0394.85
4.4.00.0120.0664.75
4.3.110.0110.0384.67
4.3.100.0080.0334.67
4.3.90.0060.0394.64
4.3.80.0140.0484.59
4.3.70.0070.0334.63
4.3.60.0070.0344.63
4.3.50.0110.0464.63
4.3.40.0090.0914.54
4.3.30.0080.0423.29
4.3.20.0040.0373.26
4.3.10.0100.0303.22
4.3.00.0030.0307.23

preferences:
36.29 ms | 400 KiB | 5 Q