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"; } ?>

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.01318.33
8.3.50.0170.00316.65
8.3.40.0110.00719.00
8.3.30.0080.00818.98
8.3.20.0030.00520.59
8.3.10.0030.00623.62
8.3.00.0060.01222.71
8.2.180.0070.01116.88
8.2.170.0170.00022.96
8.2.160.0070.00719.47
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00420.61
8.2.120.0040.00426.35
8.2.110.0070.00319.50
8.2.100.0070.00419.44
8.2.90.0000.00917.78
8.2.80.0030.00618.05
8.2.70.0000.00818.04
8.2.60.0050.00318.41
8.2.50.0000.00818.10
8.2.40.0040.00420.67
8.2.30.0040.00419.47
8.2.20.0000.00818.48
8.2.10.0040.00418.43
8.2.00.0040.00418.66
8.1.280.0150.01125.92
8.1.270.0100.00022.27
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00419.28
8.1.230.0070.00322.94
8.1.220.0040.00417.90
8.1.210.0040.00418.90
8.1.200.0060.00317.47
8.1.190.0000.00817.48
8.1.180.0080.00018.10
8.1.170.0040.00419.15
8.1.160.0070.00019.14
8.1.150.0050.00320.38
8.1.140.0070.00019.69
8.1.130.0080.00019.12
8.1.120.0080.00017.59
8.1.110.0030.00617.77
8.1.100.0040.00417.71
8.1.90.0070.00017.78
8.1.80.0000.00817.74
8.1.70.0030.00317.60
8.1.60.0000.00917.85
8.1.50.0030.00517.60
8.1.40.0000.00817.63
8.1.30.0000.00717.82
8.1.20.0070.00017.96
8.1.10.0030.00617.82
8.1.00.0030.00617.72
8.0.300.0000.00720.02
8.0.290.0030.00616.88
8.0.280.0030.00618.66
8.0.270.0030.00317.33
8.0.260.0070.00019.33
8.0.250.0000.00717.26
8.0.240.0080.00017.11
8.0.230.0000.00717.10
8.0.220.0040.00417.21
8.0.210.0040.00417.21
8.0.200.0060.00017.29
8.0.190.0040.00417.13
8.0.180.0040.00417.05
8.0.170.0000.00817.09
8.0.160.0040.00417.25
8.0.150.0030.00317.20
8.0.140.0030.00517.14
8.0.130.0060.00313.55
8.0.120.0060.00317.06
8.0.110.0040.00417.19
8.0.100.0000.00817.15
8.0.90.0040.00417.23
8.0.80.0090.01117.18
8.0.70.0000.00717.17
8.0.60.0040.00417.25
8.0.50.0040.00417.16
8.0.30.0110.00717.40
8.0.20.0100.00817.40
8.0.10.0000.00817.29
8.0.00.0110.00817.09
7.4.330.0000.00615.55
7.4.320.0000.00616.89
7.4.300.0030.00316.73
7.4.290.0000.00716.71
7.4.280.0080.00016.82
7.4.270.0070.00016.90
7.4.260.0030.00316.71
7.4.250.0000.00816.70
7.4.240.0030.00316.75
7.4.230.0030.00316.92
7.4.220.0120.00616.86
7.4.210.0100.00616.73
7.4.200.0000.00716.82
7.4.160.0110.00616.69
7.4.150.0140.00717.40
7.4.140.0130.00717.86
7.4.130.0180.00016.70
7.4.120.0120.00716.76
7.4.110.0150.00616.64
7.4.100.0110.00516.69
7.4.90.0180.00016.77
7.4.80.0120.01219.39
7.4.70.0120.00416.92
7.4.60.0100.00616.65
7.4.50.0090.00616.46
7.4.40.0110.00716.84
7.4.30.0030.01216.61
7.4.00.0070.00714.82
7.3.330.0050.00013.20
7.3.320.0000.00613.35
7.3.310.0050.00216.53
7.3.300.0050.00216.49
7.3.290.0020.01216.49
7.3.280.0090.01016.50
7.3.270.0100.00717.40
7.3.260.0050.01516.48
7.3.240.0110.00916.64
7.3.230.0170.00016.78
7.3.210.0040.01216.72
7.3.200.0140.00316.86
7.3.190.0100.00616.82
7.3.180.0130.00416.64
7.3.170.0170.00716.76
7.3.160.0150.00016.61
7.2.330.0120.00616.89
7.2.320.0060.01016.57
7.2.310.0090.00916.90
7.2.300.0070.01016.92
7.2.290.0070.01317.00
7.2.60.0140.00016.82
7.1.200.0060.00615.75
7.1.70.0040.00417.22
7.1.60.0100.00017.04
7.1.50.3330.01732.98
7.1.40.2630.01032.53
7.1.30.4000.02032.45
7.1.20.1470.01332.46
7.1.10.2530.02014.52
7.1.00.2570.01014.80
7.0.200.0130.00016.70
7.0.190.2830.00714.92
7.0.180.2230.01314.41
7.0.170.3800.01314.41
7.0.160.2170.01014.42
7.0.150.2570.01314.41
7.0.140.3030.01714.50
7.0.130.2570.01314.52
7.0.120.2500.01014.71
7.0.110.1700.01314.50
7.0.100.1730.01014.45
7.0.90.2730.00714.44
7.0.80.2700.01314.44
7.0.70.2070.00314.59
7.0.60.1470.01014.23
7.0.50.2200.01714.46
7.0.40.1770.01014.71
7.0.30.1830.01014.56
7.0.20.1900.01314.56
7.0.10.1770.01014.45
7.0.00.2470.01714.45

preferences:
63.51 ms | 400 KiB | 5 Q