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){ $data->PartyID = '1234'; } $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.0190.00317.00
8.3.50.0130.00822.18
8.3.40.0090.00618.98
8.3.30.0070.00719.47
8.3.20.0040.00420.54
8.3.10.0040.00423.95
8.3.00.0020.00521.18
8.2.180.0100.00516.75
8.2.170.0070.00722.96
8.2.160.0070.00720.85
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0070.00021.27
8.2.110.0060.00322.37
8.2.100.0060.00618.22
8.2.90.0050.00319.61
8.2.80.0000.00817.97
8.2.70.0080.00017.88
8.2.60.0080.00018.30
8.2.50.0030.00518.07
8.2.40.0040.00421.55
8.2.30.0000.00718.59
8.2.20.0040.00418.06
8.2.10.0040.00418.37
8.2.00.0040.00418.11
8.1.280.0070.00725.92
8.1.270.0080.00024.20
8.1.260.0030.00626.35
8.1.250.0090.00028.09
8.1.240.0040.00424.11
8.1.230.0040.00719.46
8.1.220.0030.00518.03
8.1.210.0040.00418.77
8.1.200.0000.01017.72
8.1.190.0050.00317.61
8.1.180.0050.00318.10
8.1.170.0000.00819.09
8.1.160.0040.00422.39
8.1.150.0040.00418.94
8.1.140.0030.00517.86
8.1.130.0070.00018.12
8.1.120.0000.00717.94
8.1.110.0050.00317.83
8.1.100.0030.00617.76
8.1.90.0070.00017.84
8.1.80.0070.00017.83
8.1.70.0000.00817.70
8.1.60.0030.00618.03
8.1.50.0000.00817.89
8.1.40.0040.00417.96
8.1.30.0030.00717.87
8.1.20.0000.00917.97
8.1.10.0000.00717.94
8.1.00.0040.00417.96
8.0.300.0050.00518.77
8.0.290.0030.00617.42
8.0.280.0070.00018.75
8.0.270.0030.00617.68
8.0.260.0060.00017.55
8.0.250.0030.00317.18
8.0.240.0050.00217.30
8.0.230.0000.00717.34
8.0.220.0070.00017.12
8.0.210.0040.00417.11
8.0.200.0070.00017.38
8.0.190.0040.00417.18
8.0.180.0050.00317.34
8.0.170.0050.00317.24
8.0.160.0040.00417.31
8.0.150.0040.00417.22
8.0.140.0040.00417.19
8.0.130.0000.00613.74
8.0.120.0080.00017.12
8.0.110.0000.00817.31
8.0.100.0040.00417.11
8.0.90.0000.00717.23
8.0.80.0080.00717.26
8.0.70.0020.00517.14
8.0.60.0080.00017.21
8.0.50.0000.00717.14
8.0.30.0140.00817.61
8.0.20.0100.01017.58
8.0.10.0000.00717.35
8.0.00.0030.01817.05
7.4.330.0050.00015.39
7.4.320.0040.00416.96
7.4.300.0000.01116.92
7.4.290.0070.00016.90
7.4.280.0060.00316.91
7.4.270.0040.00417.04
7.4.260.0030.00916.83
7.4.250.0040.00416.93
7.4.240.0060.00116.98
7.4.230.0070.00016.91
7.4.220.0110.00817.03
7.4.210.0030.01616.86
7.4.200.0030.00317.03
7.4.190.0000.00717.18
7.4.160.0070.01016.84
7.4.150.0090.00917.40
7.4.140.0060.01517.86
7.4.130.0030.02016.99
7.4.120.0100.00616.83
7.4.110.0070.01016.93
7.4.100.0100.00916.93
7.4.90.0110.00716.62
7.4.80.0180.00019.39
7.4.70.0100.00616.84
7.4.60.0060.01316.80
7.4.50.0000.00516.92
7.4.40.0120.00616.89
7.4.30.0120.00316.80
7.4.00.0080.00415.06
7.3.330.0060.00013.49
7.3.320.0000.00613.47
7.3.310.0040.00416.60
7.3.300.0030.00316.61
7.3.290.0030.01316.58
7.3.280.0090.00716.59
7.3.270.0120.00617.40
7.3.260.0100.00716.94
7.3.250.0110.00816.73
7.3.240.0070.01116.77
7.3.230.0120.00616.64
7.3.210.0090.00916.79
7.3.200.0070.01019.39
7.3.190.0140.00417.02
7.3.180.0090.00616.58
7.3.170.0120.00416.67
7.3.160.0090.00616.72
7.3.120.0100.00315.04
7.2.330.0120.00617.21
7.2.320.0070.01117.05
7.2.310.0150.00417.02
7.2.300.0140.00716.86
7.2.290.0140.00316.78
7.2.60.0090.00617.17
7.2.00.0090.00619.72
7.1.200.0030.00916.09
7.1.100.0070.00317.97
7.1.70.0040.00417.43
7.1.60.0060.01019.46
7.1.50.0060.01616.92
7.1.00.0000.08022.52
7.0.200.0130.00017.06
7.0.140.0070.06722.26
7.0.60.0100.08020.14
7.0.50.0030.08717.98
7.0.40.0070.08320.18
7.0.30.0200.04720.32
7.0.20.0270.05020.48
7.0.10.0070.09020.27
7.0.00.0070.09020.38
5.6.280.0070.06321.27
5.6.210.0100.07320.92
5.6.200.0170.02718.43
5.6.190.0000.04720.84
5.6.180.0270.08020.67
5.6.170.0130.04320.77
5.6.160.0070.07320.64
5.6.150.0030.05318.41
5.6.140.0170.07718.39
5.6.130.0030.04718.41
5.6.120.0030.07721.27
5.6.110.0100.08321.30
5.6.100.0070.08021.15
5.6.90.0130.08021.26
5.6.80.0070.06020.63
5.5.350.0070.07320.61
5.5.340.0000.08018.06
5.5.330.0070.06720.29
5.5.320.0270.07320.57
5.5.310.0070.04720.39
5.5.300.0170.07018.11
5.5.290.0070.05318.11
5.5.280.0130.08320.96
5.5.270.0030.08721.08
5.5.260.0030.06720.98
5.5.250.0100.03320.80
5.5.240.0070.06020.35
5.4.450.0670.05019.85
5.4.440.0630.05719.73
5.4.430.1330.05019.64
5.4.420.1000.06319.61
5.4.410.0100.07019.57
5.4.400.0700.05719.27
5.4.390.1270.06319.21
5.4.380.0230.06018.87
5.4.370.0270.05318.63
5.4.360.0570.06718.63
5.4.350.0230.06018.91
5.4.340.0300.05018.88
5.4.320.0110.03212.71
5.4.310.0080.04712.70
5.4.300.0140.04712.71
5.4.290.0120.05912.70
5.4.280.0120.05212.61
5.4.270.0090.05312.60
5.4.260.0090.06112.60
5.4.250.0120.06512.60
5.4.240.0070.06512.61
5.4.230.0100.07912.60
5.4.220.0070.05212.59
5.4.210.0090.05212.59
5.4.200.0090.05612.59
5.4.190.0120.05212.59
5.4.180.0050.05612.59
5.4.170.0070.05312.60
5.4.160.0110.04412.60
5.4.150.0090.04812.59
5.4.140.0050.05512.28
5.4.130.0110.04712.27
5.4.120.0120.04912.22
5.4.110.0110.05212.21
5.4.100.0120.04812.22
5.4.90.0160.04712.22
5.4.80.0130.06212.22
5.4.70.0100.05712.22
5.4.60.0070.05312.21
5.4.50.0150.04512.21
5.4.40.0100.05212.20
5.4.30.0060.05412.20
5.4.20.0060.05612.20
5.4.10.0100.05112.20
5.4.00.0070.05611.69
5.3.290.0090.03612.96
5.3.280.0080.05712.90
5.3.270.0120.05512.91
5.3.260.0060.05912.91
5.3.250.0110.05312.91
5.3.240.0130.05112.91
5.3.230.0130.04912.90
5.3.220.0110.05312.87
5.3.210.0090.05712.88
5.3.200.0120.05112.87
5.3.190.0180.07012.87
5.3.180.0100.05012.87
5.3.170.0060.04912.87
5.3.160.0080.03612.87
5.3.150.0040.04012.87
5.3.140.0130.05112.86
5.3.130.0080.05412.86
5.3.120.0080.05412.85
5.3.110.0100.05912.86
5.3.100.0100.04912.34
5.3.90.0060.03912.32
5.3.80.0130.03212.32
5.3.70.0060.05312.32
5.3.60.0140.05012.30
5.3.50.0080.04612.26
5.3.40.0090.04612.25
5.3.30.0070.04012.21
5.3.20.0080.04011.98
5.3.10.0050.04211.95
5.3.00.0070.04411.94
5.2.170.0030.0349.44
5.2.160.0050.0369.45
5.2.150.0040.0359.45
5.2.140.0040.0319.44
5.2.130.0030.0309.40
5.2.120.0040.0319.40
5.2.110.0070.0269.41
5.2.100.0060.0279.40
5.2.90.0030.0309.40
5.2.80.0040.0359.39
5.2.70.0040.0379.39
5.2.60.0090.0399.35
5.2.50.0060.0439.32
5.2.40.0060.0409.30
5.2.30.0100.0399.27
5.2.20.0090.0489.26
5.2.10.0040.0469.18
5.2.00.0060.0419.04
5.1.60.0040.0378.32
5.1.50.0050.0348.32
5.1.40.0050.0368.30
5.1.30.0060.0378.65
5.1.20.0020.0408.67
5.1.10.0030.0378.38
5.1.00.0080.0348.38
5.0.50.0050.0286.86
5.0.40.0080.0256.73
5.0.30.0090.0386.54
5.0.20.0050.0276.52
5.0.10.0030.0306.49
5.0.00.0060.0346.48
4.4.90.0060.0194.78
4.4.80.0050.0204.75
4.4.70.0060.0194.76
4.4.60.0050.0194.75
4.4.50.0050.0204.77
4.4.40.0040.0284.71
4.4.30.0070.0174.76
4.4.20.0040.0214.84
4.4.10.0040.0214.85
4.4.00.0030.0334.76
4.3.110.0030.0254.67
4.3.100.0080.0414.66
4.3.90.0030.0234.63
4.3.80.0030.0314.58
4.3.70.0060.0184.63
4.3.60.0040.0214.62
4.3.50.0080.0204.62
4.3.40.0030.0324.54
4.3.30.0030.0203.28
4.3.20.0010.0233.26
4.3.10.0040.0193.22
4.3.00.0000.0237.36

preferences:
39.28 ms | 401 KiB | 5 Q