3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="isokur.xsl"?> <Tarih_Date Tarih="11.05.2017" Date="05/11/2017" Bulten_No="2017/93" > <Currency CrossOrder="0" Kod="USD" CurrencyCode="USD"> <Unit>1</Unit> <Isim>ABD DOLARI</Isim> <CurrencyName>US DOLLAR</CurrencyName> <ForexBuying>3.5736</ForexBuying> <ForexSelling>3.5801</ForexSelling> <BanknoteBuying>3.5711</BanknoteBuying> <BanknoteSelling>3.5854</BanknoteSelling> <CrossRateUSD/> <CrossRateOther/> </Currency> <Currency CrossOrder="1" Kod="AUD" CurrencyCode="AUD"> <Unit>1</Unit> <Isim>AVUSTRALYA DOLARI</Isim> <CurrencyName>AUSTRALIAN DOLLAR</CurrencyName> <ForexBuying>2.6271</ForexBuying> <ForexSelling>2.6442</ForexSelling> <BanknoteBuying>2.6150</BanknoteBuying> <BanknoteSelling>2.6601</BanknoteSelling> <CrossRateUSD>1.3571</CrossRateUSD> <CrossRateOther/> </Currency> </Tarih_Date> XML; $xml = new DOMDocument(); $xml->loadXML($string); foreach($xml->getElementsByTagName('Currency') as $c) { echo $c->getAttribute('CurrencyCode'); echo "\n"; $crossRateUSDNode = $c->getElementsByTagName('CrossRateUSD'); $crossRateUSD = null; if(!empty($crossRateUSDNode)){ $crossRateUSD = $crossRateUSDNode->item(0)->nodeValue; }else{ } echo "crossRateUSD: $crossRateUSD"; echo "\n"; } ?>

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.0110.01118.43
8.3.50.0110.00418.23
8.3.40.0060.01218.81
8.3.30.0090.00918.97
8.3.20.0050.00220.45
8.3.10.0000.00722.07
8.3.00.0110.00622.61
8.2.180.0170.00325.92
8.2.170.0140.00722.96
8.2.160.0170.00319.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.60
8.2.120.0040.00426.35
8.2.110.0060.00321.13
8.2.100.0060.00618.09
8.2.90.0050.00319.45
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00618.18
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0080.00018.30
8.2.20.0000.00918.21
8.2.10.0000.00718.34
8.2.00.0040.00418.58
8.1.280.0070.00725.92
8.1.270.0050.00322.33
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0100.00021.16
8.1.230.0040.00717.95
8.1.220.0030.00618.03
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00517.48
8.1.180.0040.00718.10
8.1.170.0030.00518.89
8.1.160.0030.00519.11
8.1.150.0040.00420.41
8.1.140.0000.00719.84
8.1.130.0000.00919.13
8.1.120.0050.00217.61
8.1.110.0000.00817.65
8.1.100.0040.00417.59
8.1.90.0030.00617.64
8.1.80.0020.00517.69
8.1.70.0030.00317.77
8.1.60.0060.00317.83
8.1.50.0070.00017.85
8.1.40.0060.00317.86
8.1.30.0080.00017.80
8.1.20.0050.00317.96
8.1.10.0040.00417.92
8.1.00.0000.00817.60
8.0.300.0080.00018.77
8.0.290.0040.00417.13
8.0.280.0040.00418.65
8.0.270.0000.00817.51
8.0.260.0000.00719.14
8.0.250.0030.00317.28
8.0.240.0000.00717.22
8.0.230.0070.00017.30
8.0.220.0030.00317.08
8.0.210.0070.00017.22
8.0.200.0000.00717.29
8.0.190.0000.00817.30
8.0.180.0050.00317.08
8.0.170.0030.00517.29
8.0.160.0040.00417.13
8.0.150.0040.00417.15
8.0.140.0000.00717.09
8.0.130.0060.00313.53
8.0.120.0040.00417.02
8.0.110.0000.00817.07
8.0.100.0070.00017.20
8.0.90.0020.00517.13
8.0.80.0090.01217.25
8.0.70.0040.00417.09
8.0.60.0000.00717.02
8.0.50.0040.00417.25
8.0.30.0070.01217.61
8.0.20.0110.00817.46
8.0.10.0030.00517.14
8.0.00.0090.01016.93
7.4.330.0030.00315.55
7.4.320.0000.00616.88
7.4.300.0070.00016.73
7.4.290.0030.00316.70
7.4.280.0030.00516.81
7.4.270.0030.00316.74
7.4.260.0080.00316.91
7.4.250.0030.00316.72
7.4.240.0000.00716.76
7.4.230.0080.00016.84
7.4.220.0090.01816.75
7.4.210.0100.01016.89
7.4.200.0000.00716.64
7.4.160.0080.00816.82
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0210.00816.82
7.4.120.0070.01616.75
7.4.110.0110.00716.71
7.4.100.0170.00516.60
7.4.90.0190.00316.80
7.4.80.0070.01019.39
7.4.70.0140.00316.61
7.4.60.0100.00716.70
7.4.50.0100.00716.84
7.4.40.0070.01616.91
7.4.30.0100.00716.68
7.4.00.0060.01014.94
7.3.330.0000.00513.46
7.3.320.0000.00513.28
7.3.310.0070.00016.65
7.3.300.0000.00716.46
7.3.290.0090.00816.57
7.3.280.0090.00916.59
7.3.270.0150.01817.40
7.3.260.0150.00716.57
7.3.240.0060.01216.69
7.3.230.0100.01016.64
7.3.210.0100.00716.57
7.3.200.0060.01116.76
7.3.190.0130.00316.66
7.3.180.0100.01316.82
7.3.170.0030.01416.51
7.3.160.0060.01516.71
7.2.330.0130.00717.03
7.2.320.0150.00316.75
7.2.310.0120.00616.76
7.2.300.0180.00016.91
7.2.290.0130.00316.91
7.2.60.0060.00617.11
7.1.200.0060.00916.09
7.1.70.0030.00616.94
7.1.60.0060.00617.39
7.1.50.1330.01733.11
7.1.40.1330.01732.51
7.1.30.0900.02032.53
7.1.20.1100.01032.77
7.1.10.1670.01014.84
7.1.00.1100.01014.87
7.0.200.0070.01116.70
7.0.190.0800.00714.82
7.0.180.1830.01014.37
7.0.170.1000.00314.42
7.0.160.1100.01314.35
7.0.150.1870.01014.43
7.0.140.1030.01014.55
7.0.130.2430.01014.70
7.0.120.1800.01014.63
7.0.110.0800.01014.55
7.0.100.0930.01014.54
7.0.90.1570.01014.48
7.0.80.2000.01314.71
7.0.70.0930.00714.66
7.0.60.1300.00314.16
7.0.50.1330.00714.54
7.0.40.2170.01014.59
7.0.30.0170.00714.68
7.0.20.0000.01314.75
7.0.10.0000.01714.42
7.0.00.0030.01314.63

preferences:
57.1 ms | 400 KiB | 5 Q