3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string('<html><meta http-equiv=\'Refresh\' content=\'0; url=/animation.php\'> </html>'); $result = $xml->xpath("//meta[@http-equiv='refresh']"); var_dump($result);
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 2: parser error : Opening and ending tag mismatch: meta line 1 and html in /in/2BosQ on line 3 Warning: simplexml_load_string(): </html> in /in/2BosQ on line 3 Warning: simplexml_load_string(): ^ in /in/2BosQ on line 3 Warning: simplexml_load_string(): Entity: line 2: parser error : Premature end of data in tag html line 1 in /in/2BosQ on line 3 Warning: simplexml_load_string(): </html> in /in/2BosQ on line 3 Warning: simplexml_load_string(): ^ in /in/2BosQ on line 3 Fatal error: Uncaught Error: Call to a member function xpath() on bool in /in/2BosQ:5 Stack trace: #0 {main} thrown in /in/2BosQ on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 2: parser error : Opening and ending tag mismatch: meta line 1 and html in /in/2BosQ on line 3 Warning: simplexml_load_string(): </html> in /in/2BosQ on line 3 Warning: simplexml_load_string(): ^ in /in/2BosQ on line 3 Warning: simplexml_load_string(): Entity: line 2: parser error : Premature end of data in tag html line 1 in /in/2BosQ on line 3 Warning: simplexml_load_string(): </html> in /in/2BosQ on line 3 Warning: simplexml_load_string(): ^ in /in/2BosQ on line 3 Fatal error: Uncaught Error: Call to a member function xpath() on false in /in/2BosQ:5 Stack trace: #0 {main} thrown in /in/2BosQ on line 5
Process exited with code 255.

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:
61.13 ms | 402 KiB | 8 Q