3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting (E_ALL ^ E_NOTICE); ini_set('display_errors',true); $xml = <<<XML <?xml version="1.0" encoding="UTF-8"?> <Whirlpool xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PricingInfoResults> <RequestResults> <RequestDate>1/5/2017</RequestDate> <RequestTime>8:35 AM</RequestTime> <ReturnInfo> <ReturnInfoCode>1000</ReturnInfoCode> <ReturnInfoDesc>Promo code found</ReturnInfoDesc> </ReturnInfo> </RequestResults> <PricingInfo> <ProductDesc>Icemaker</ProductDesc> <CampaignCode>WRLPIO1612</CampaignCode> <CMICode>WR1612WEB</CMICode> <MCMCode>WHIRLPOOLWBOX</MCMCode> <RowId>1309467.00</RowId> <Term> <TermDesc>1 Year</TermDesc> <PaymentOption> <OptionDesc>Full Pay</OptionDesc> <Price>94.95</Price> <ProductIndicator>WD</ProductIndicator> </PaymentOption> </Term> <Term> <TermDesc>3 Year</TermDesc> <PaymentOption> <OptionDesc>Full Pay</OptionDesc> <Price>244.95</Price> <ProductIndicator>WE</ProductIndicator> </PaymentOption> </Term> </PricingInfo> </PricingInfoResults> </Whirlpool> XML; $simpleXML = simplexml_load_string($xml); $xpathText = '/Term/TermDesc'; $parent = $simpleXML->PricingInfoResults->PricingInfo->Term->xpath($xpathText)[0]; echo '<pre>Parent';$parent;echo '</pre>'; ;

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.0070.00717.23
8.3.50.0280.00621.29
8.3.40.0150.00019.26
8.3.30.0120.00619.21
8.3.20.0030.00521.29
8.3.10.0040.00421.98
8.3.00.0050.00320.06
8.2.180.0100.01017.25
8.2.170.0070.01422.96
8.2.160.0100.00320.82
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00321.58
8.2.110.0090.00022.62
8.2.100.0080.00420.14
8.2.90.0000.00918.13
8.2.80.0080.00018.00
8.2.70.0090.00018.30
8.2.60.0060.00318.30
8.2.50.0000.00818.10
8.2.40.0060.00321.03
8.2.30.0000.00921.41
8.2.20.0060.00318.63
8.2.10.0040.00418.61
8.2.00.0040.00418.16
8.1.280.0040.01125.92
8.1.270.0000.00822.51
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00624.29
8.1.230.0110.00019.67
8.1.220.0000.00818.13
8.1.210.0030.00618.77
8.1.200.0060.00317.38
8.1.190.0000.00817.72
8.1.180.0000.00818.10
8.1.170.0060.00319.16
8.1.160.0000.00822.51
8.1.150.0030.00519.20
8.1.140.0060.00319.86
8.1.130.0000.00719.38
8.1.120.0000.00717.61
8.1.110.0040.00417.66
8.1.100.0040.00417.64
8.1.90.0030.00617.77
8.1.80.0000.00817.84
8.1.70.0030.00517.81
8.1.60.0030.00617.90
8.1.50.0030.00617.80
8.1.40.0060.00317.80
8.1.30.0040.00418.09
8.1.20.0040.00417.86
8.1.10.0040.00417.82
8.1.00.0080.00017.90
8.0.300.0040.00418.77
8.0.290.0000.00717.25
8.0.280.0040.00418.89
8.0.270.0000.00717.68
8.0.260.0030.00317.67
8.0.250.0000.00717.46
8.0.240.0050.00317.41
8.0.230.0070.00017.20
8.0.220.0000.00717.23
8.0.210.0090.00017.38
8.0.200.0030.00317.41
8.0.190.0040.00417.33
8.0.180.0040.00417.18
8.0.170.0070.00017.34
8.0.160.0080.00017.28
8.0.150.0050.00217.12
8.0.140.0000.00717.14
8.0.130.0000.00713.68
8.0.120.0000.00817.19
8.0.110.0000.00717.33
8.0.100.0000.00717.23
8.0.90.0080.00017.16
8.0.80.0090.00617.24
8.0.70.0040.00417.20
8.0.60.0040.00417.20
8.0.50.0000.00817.33
8.0.30.0090.00717.56
8.0.20.0130.00517.43
8.0.10.0000.00817.50
8.0.00.0180.00617.48
7.4.330.0000.00515.55
7.4.320.0020.00517.03
7.4.300.0030.00316.86
7.4.290.0030.00316.98
7.4.280.0040.00416.84
7.4.270.0040.00417.05
7.4.260.0000.00816.93
7.4.250.0040.00417.02
7.4.240.0020.00516.97
7.4.230.0030.00316.91
7.4.220.0110.00716.91
7.4.210.0100.00616.95
7.4.200.0040.00317.12
7.4.160.0110.00616.88
7.4.150.0100.01317.40
7.4.140.0100.01017.86
7.4.130.0090.00817.10
7.4.120.0170.00316.99
7.4.110.0140.00717.07
7.4.100.0100.01016.81
7.4.90.0130.00916.98
7.4.80.0120.00919.39
7.4.70.0030.01416.89
7.4.60.0100.00616.93
7.4.50.0060.00816.95
7.4.40.0060.01116.89
7.4.30.0110.00617.07
7.4.00.0080.00814.97
7.3.330.0030.00313.40
7.3.320.0000.00513.52
7.3.310.0040.00416.72
7.3.300.0060.00016.58
7.3.290.0070.00016.62
7.3.280.0090.00816.67
7.3.270.0060.01717.40
7.3.260.0140.00516.76
7.3.250.0120.00716.86
7.3.240.0120.00816.79
7.3.230.0060.01416.61
7.3.210.0110.00716.75
7.3.200.0150.00616.98
7.3.190.0060.01116.79
7.3.180.0100.00716.80
7.3.170.0070.01016.73
7.3.160.0100.00616.83
7.2.330.0120.01117.09
7.2.320.0040.01417.18
7.2.310.0070.01616.72
7.2.300.0000.01717.04
7.2.290.0140.00716.91
7.1.70.0000.00717.36
7.1.60.0040.00817.21
7.1.00.0030.06322.81
7.0.200.0030.01017.00
7.0.140.0170.05022.24
7.0.130.0170.07322.22
7.0.120.0170.07322.29
7.0.110.0130.05322.21
7.0.100.0100.06322.24
7.0.90.0200.04722.34
7.0.80.0130.05722.27
7.0.70.0130.06022.23
7.0.60.0170.05022.07
7.0.50.0200.05322.29
7.0.40.0000.06722.25
7.0.30.0100.06022.25
7.0.20.0070.06022.32
7.0.10.0030.06322.35
7.0.00.0130.05322.29
5.6.290.0100.05321.04
5.6.280.0130.08721.28
5.6.270.0170.06021.11
5.6.260.0070.06021.22
5.6.250.0170.05021.07
5.6.240.0170.06021.04
5.6.230.0070.06321.04
5.6.220.0100.07721.25
5.6.210.0200.06321.07
5.6.200.0030.07021.07
5.6.190.0130.06721.11
5.6.180.0230.05321.20
5.6.170.0070.06021.21
5.6.160.0100.05721.21
5.6.150.0170.08020.91
5.6.140.0270.06721.20
5.6.130.0170.07021.06
5.6.120.0070.06721.04
5.6.110.0030.06321.07
5.6.100.0070.06021.33
5.6.90.0100.05321.19
5.6.80.0170.05320.59
5.6.70.0200.05020.48
5.6.60.0070.06720.61
5.6.50.0100.06320.41
5.6.40.0100.05020.47
5.6.30.0230.06320.28
5.6.20.0200.05320.36
5.6.10.0130.08320.40
5.6.00.0030.06020.63

preferences:
60.52 ms | 401 KiB | 5 Q