3v4l.org

run code in 300+ PHP versions simultaneously
<?php $me = __FILE__; $xml = <<<ENDOFXML <!DOCTYPE root [ <!ENTITY foo SYSTEM "php://filter/convert.base64-encode/resource=$me"> ]> <foo>&foo;</foo> ENDOFXML; echo "libxml version: " . LIBXML_DOTTED_VERSION . "\n\n"; libxml_disable_entity_loader(); $s = simplexml_load_string($xml, null, LIBXML_NOENT); var_dump($s); echo "\n"; var_dump(base64_decode($s));
Output for git.master, git.master_jit, rfc.property-hooks
libxml version: 2.9.4 Deprecated: Function libxml_disable_entity_loader() is deprecated in /in/Pso2C on line 12 Warning: simplexml_load_string(): I/O warning : failed to load external entity "php://filter/convert.base64-encode/resource=/in/Pso2C" in /in/Pso2C on line 13 Warning: simplexml_load_string(): Entity: line 5: parser error : Failure to process entity foo in /in/Pso2C on line 13 Warning: simplexml_load_string(): <foo>&foo;</foo> in /in/Pso2C on line 13 Warning: simplexml_load_string(): ^ in /in/Pso2C on line 13 Warning: simplexml_load_string(): Entity: line 5: parser error : Entity 'foo' not defined in /in/Pso2C on line 13 Warning: simplexml_load_string(): <foo>&foo;</foo> in /in/Pso2C on line 13 Warning: simplexml_load_string(): ^ in /in/Pso2C on line 13 bool(false) string(0) ""

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.6 ms | 403 KiB | 8 Q