3v4l.org

run code in 300+ PHP versions simultaneously
<?php $writer = new SimpleXMLElement('<?xml version="1.0"?><MessageHeader><MessageThreadId>0000000022</MessageThreadId><MessageId>000000002201</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-30T09:35:57</MessageCreatedDateTime></MessageHeader>'); $messagerecipient = $writer->xpath('MessageRecipient'); //foreach($messagerecipient as $data){ $messagerecipient[0]->PartyID = '1234'; //} $output = $writer->asXML(); echo $output; var_dump($messagerecipient); ?>

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.0120.00918.93
8.3.30.0040.01119.29
8.3.20.0040.01120.63
8.3.10.0060.00323.92
8.3.00.0040.00419.43
8.2.170.0140.00722.96
8.2.160.0140.00020.71
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00621.27
8.2.110.0030.00622.67
8.2.100.0040.00718.41
8.2.90.0000.00819.78
8.2.80.0040.00418.13
8.2.70.0080.00018.13
8.2.60.0000.00818.54
8.2.50.0060.00318.07
8.2.40.0050.00321.59
8.2.30.0070.00018.56
8.2.20.0000.00718.04
8.2.10.0070.00018.48
8.2.00.0030.00618.07
8.1.270.0050.00324.09
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00324.16
8.1.230.0090.00319.41
8.1.220.0030.00518.05
8.1.210.0080.00018.77
8.1.200.0040.00817.60
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0000.00818.96
8.1.160.0050.00222.41
8.1.150.0050.00218.84
8.1.140.0040.00417.86
8.1.130.0000.00718.19
8.1.120.0000.00717.63
8.1.110.0000.00717.81
8.1.100.0080.00017.70
8.1.90.0040.00417.81
8.1.80.0080.00017.88
8.1.70.0030.00317.58
8.1.60.0030.00617.90
8.1.50.0070.00017.86
8.1.40.0040.00417.92
8.1.30.0050.00317.80
8.1.20.0040.00418.02
8.1.10.0000.00918.01
8.1.00.0000.00817.82
8.0.300.0040.00418.77
8.0.290.0030.00617.43
8.0.280.0040.00418.77
8.0.270.0050.00517.57
8.0.260.0030.00317.55
8.0.250.0070.00017.36
8.0.240.0050.00217.21
8.0.230.0000.00717.27
8.0.220.0030.00317.23
8.0.210.0000.00717.01
8.0.200.0070.00017.25
8.0.190.0040.00417.13
8.0.180.0050.00317.27
8.0.170.0000.00817.23
8.0.160.0000.00717.14
8.0.150.0040.00417.29
8.0.140.0000.00717.02
8.0.130.0000.00513.70
8.0.120.0040.00417.02
8.0.110.0030.00517.17
8.0.100.0050.00217.20
8.0.90.0000.00717.24
8.0.80.0070.00817.16
8.0.70.0040.00417.18
8.0.60.0080.00017.08
8.0.50.0070.00017.36
8.0.30.0120.00717.25
8.0.20.0180.00517.44
8.0.10.0040.00417.27
8.0.00.0060.01416.96
7.4.330.0000.00515.38
7.4.320.0000.00716.91
7.4.300.0060.00316.77
7.4.290.0000.00716.85
7.4.280.0070.00016.75
7.4.270.0070.00016.88
7.4.260.0030.00616.85
7.4.250.0000.00716.74
7.4.240.0020.00616.94
7.4.230.0000.00716.61
7.4.220.0120.01216.87
7.4.210.0050.01016.75
7.4.200.0000.00716.86
7.4.190.0000.00717.00
7.4.160.0080.00816.88
7.4.150.0090.01017.40
7.4.140.0100.01217.86
7.4.130.0050.01316.83
7.4.120.0130.00516.83
7.4.110.0130.01016.89
7.4.100.0100.01016.73
7.4.90.0110.00716.78
7.4.80.0150.00319.39
7.4.70.0130.00316.95
7.4.60.0160.00016.73
7.4.50.0030.00316.68
7.4.40.0060.01216.76
7.4.30.0050.01416.89
7.4.00.0090.00915.06
7.3.330.0070.00013.60
7.3.320.0000.00713.36
7.3.310.0000.00716.82
7.3.300.0030.00316.74
7.3.290.0100.00716.77
7.3.280.0090.01016.69
7.3.270.0140.01117.40
7.3.260.0110.00716.80
7.3.250.0110.00916.84
7.3.240.0090.00916.63
7.3.230.0100.00716.72
7.3.210.0030.01416.67
7.3.200.0040.01719.39
7.3.190.0070.01016.91
7.3.180.0130.00316.84
7.3.170.0060.01016.64
7.3.160.0070.01016.68
7.3.120.0100.00715.09
7.3.110.0120.00915.02
7.3.100.0030.01014.80
7.3.90.0030.01115.32
7.3.80.0070.00714.88
7.3.70.0070.00314.92
7.3.60.0110.00414.93
7.3.50.0040.00714.93
7.3.40.0030.01014.86
7.3.30.0090.00614.98
7.3.20.0060.00716.86
7.3.10.0030.01216.61
7.3.00.0060.00916.84
7.2.330.0120.00916.96
7.2.320.0090.01216.68
7.2.310.0100.00717.00
7.2.300.0110.00616.75
7.2.290.0090.01217.05
7.2.250.0100.00715.09
7.2.240.0130.00615.34
7.2.230.0000.01515.32
7.2.220.0040.00814.94
7.2.210.0030.01014.88
7.2.200.0060.00915.21
7.2.190.0030.01215.09
7.2.180.0060.00615.13
7.2.170.0070.01014.88
7.2.60.0100.00316.97
7.2.00.0030.00919.62
7.1.330.0000.01716.06
7.1.320.0000.01115.80
7.1.310.0040.01116.18
7.1.300.0000.01215.93
7.1.290.0030.01015.94
7.1.280.0060.00915.91
7.1.270.0030.01015.81
7.1.260.0090.00615.87
7.1.200.0110.00315.73
7.1.100.0030.00618.21
7.1.70.0000.01017.45
7.1.60.0030.02119.46
7.1.50.0000.01117.17
7.1.00.0000.07722.59
7.0.200.0060.00617.09
7.0.140.0100.06722.19
7.0.60.0130.08020.09
7.0.50.0070.06718.05
7.0.40.0130.04320.55
7.0.30.0270.05720.21
7.0.20.0270.05720.31
7.0.10.0030.08720.24
7.0.00.0070.05020.37
5.6.280.0070.07021.15
5.6.210.0070.08020.81
5.6.200.0100.08318.39
5.6.190.0030.07720.48
5.6.180.0370.04020.89
5.6.170.0230.05020.77
5.6.160.0070.06020.66
5.6.150.0100.06318.36
5.6.140.0130.07018.33
5.6.130.0030.04718.35
5.6.120.0030.08721.10
5.6.110.0100.06721.23
5.6.100.0000.07721.27
5.6.90.0130.07721.11
5.6.80.0130.06020.62
5.5.350.0230.07320.65
5.5.340.0000.05018.16
5.5.330.0100.06320.64
5.5.320.0400.06720.55
5.5.310.0030.05020.43
5.5.300.0030.05018.19
5.5.290.0030.08318.07
5.5.280.0130.08020.96
5.5.270.0030.08021.00
5.5.260.0170.07020.98
5.5.250.0030.06320.77
5.5.240.0130.03720.33
5.4.450.0430.04319.68
5.4.440.0070.03719.50
5.4.430.0300.04719.30
5.4.420.0470.04319.33
5.4.410.0230.04319.49
5.4.400.0230.04719.04
5.4.390.0670.04319.45
5.4.380.0370.06018.78
5.4.370.0330.06018.67
5.4.360.0570.06318.93
5.4.350.0500.07318.68
5.4.340.0530.07018.83
5.4.320.0060.03812.71
5.4.310.0040.04012.70
5.4.300.0080.05012.71
5.4.290.0090.05212.71
5.4.280.0060.05012.61
5.4.270.0100.04712.61
5.4.260.0100.05112.61
5.4.250.0100.05312.61
5.4.240.0130.04512.61
5.4.230.0090.05112.60
5.4.220.0110.04512.60
5.4.210.0040.04312.60
5.4.200.0080.04812.60
5.4.190.0090.05312.60
5.4.180.0040.05512.60
5.4.170.0070.05012.60
5.4.160.0050.04912.60
5.4.150.0060.04912.60
5.4.140.0110.05112.28
5.4.130.0100.05112.27
5.4.120.0080.04512.23
5.4.110.0040.04312.22
5.4.100.0100.03812.22
5.4.90.0040.04312.23
5.4.80.0060.04012.22
5.4.70.0050.04312.21
5.4.60.0100.03712.21
5.4.50.0110.04312.21
5.4.40.0110.04812.20
5.4.30.0070.05012.20
5.4.20.0080.04712.20
5.4.10.0080.04812.20
5.4.00.0070.05111.69
5.3.290.0080.03812.97
5.3.280.0130.04512.89
5.3.270.0100.05312.91
5.3.260.0110.05012.91
5.3.250.0070.04112.91
5.3.240.0080.04312.91
5.3.230.0090.03912.91
5.3.220.0110.03612.88
5.3.210.0060.04812.87
5.3.200.0080.04012.87
5.3.190.0080.04312.87
5.3.180.0070.03912.87
5.3.170.0080.04112.87
5.3.160.0120.04212.87
5.3.150.0090.04712.87
5.3.140.0080.04912.86
5.3.130.0090.04612.86
5.3.120.0070.04512.86
5.3.110.0050.04312.85
5.3.100.0090.04812.34
5.3.90.0120.04112.32
5.3.80.0050.04012.31
5.3.70.0080.04112.31
5.3.60.0060.03712.30
5.3.50.0070.04112.25
5.3.40.0080.04012.25
5.3.30.0090.04512.21
5.3.20.0050.04111.98
5.3.10.0070.04711.95
5.3.00.0070.04511.94
5.2.170.0060.0329.45
5.2.160.0110.0279.44
5.2.150.0060.0309.44
5.2.140.0080.0319.43
5.2.130.0060.0309.40
5.2.120.0080.0279.40
5.2.110.0050.0319.40
5.2.100.0070.0319.40
5.2.90.0070.0319.40
5.2.80.0080.0349.39
5.2.70.0050.0339.39
5.2.60.0050.0309.36
5.2.50.0030.0339.32
5.2.40.0050.0349.30
5.2.30.0070.0399.27
5.2.20.0110.0379.26
5.2.10.0090.0389.18
5.2.00.0110.0379.04
5.1.60.0090.0318.33
5.1.50.0060.0358.33
5.1.40.0070.0358.30
5.1.30.0060.0368.66
5.1.20.0060.0378.68
5.1.10.0060.0348.39
5.1.00.0070.0368.39
5.0.50.0070.0206.87
5.0.40.0050.0286.73
5.0.30.0060.0346.54
5.0.20.0050.0216.51
5.0.10.0040.0276.49
5.0.00.0080.0306.48
4.4.90.0040.0154.77
4.4.80.0030.0154.75
4.4.70.0040.0164.75
4.4.60.0030.0164.75
4.4.50.0040.0164.77
4.4.40.0050.0304.71
4.4.30.0010.0194.76
4.4.20.0040.0174.84
4.4.10.0030.0224.84
4.4.00.0050.0314.76
4.3.110.0020.0234.67
4.3.100.0090.0284.67
4.3.90.0040.0254.64
4.3.80.0060.0274.59
4.3.70.0030.0184.63
4.3.60.0050.0184.63
4.3.50.0050.0214.63
4.3.40.0050.0304.54
4.3.30.0020.0183.28
4.3.20.0030.0173.26
4.3.10.0020.0173.21
4.3.00.0000.02016.12

preferences:
38.96 ms | 400 KiB | 5 Q