3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE strony [ <!ENTITY shp SYSTEM "php://dir('/etc')"> ] > <strony> <strona id="cccc"> <nazwa>bbbb</nazwa> <url>http://www.aaaa.pl/</url> <komentarz> &shp;</komentarz> </strona> </strony>'; $strony = new SimpleXMLElement($xml, LIBXML_NOENT); foreach($strony->strona->komentarz as $komentarz) echo "$komentarz\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)
7.1.70.0100.01016.85
7.1.60.0320.00735.14
7.1.50.0250.01634.46
7.1.40.0270.01434.28
7.1.30.0210.01134.38
7.1.20.0220.01334.46
7.1.10.0060.01316.26
7.1.00.0070.01016.30
7.0.200.0110.00816.73
7.0.190.0110.00816.52
7.0.180.0030.01516.00
7.0.170.0090.01215.98
7.0.160.0060.01116.18
7.0.150.0030.01616.19
7.0.140.0070.01016.11
7.0.130.0060.00916.34
7.0.120.0060.00916.35
7.0.110.0060.00916.07
7.0.100.0110.00816.18
7.0.90.0100.00716.03
7.0.80.0060.00916.06
7.0.70.0090.00616.24
7.0.60.0060.00916.01
7.0.50.0080.00916.24
7.0.40.0070.00916.49
7.0.30.0100.01016.22
7.0.20.0060.00916.31
7.0.10.0110.00416.15
7.0.00.0070.00716.33

preferences:
133.98 ms | 1394 KiB | 7 Q