3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<?xml version="1.0" encoding="UTF-8"?> <settings> <background_color>#000000</background_color> <show_context_menu>yes</show_context_menu> <image> <thumb_path>210x245.png</thumb_path> <big_image_path>620x930.png</big_image_path> </image> <image> <thumb_path>200x295.png</thumb_path> <big_image_path>643x950.png</big_image_path> </image> </settings>'; $xml = simplexml_load_string($xml); unset($xml->image); $xml->asXML('php://output');
Output for git.master, git.master_jit
Warning: Undefined variable $xml in /in/bbhZo on line 16 Deprecated: simplexml_load_string(): Passing null to parameter #1 ($data) of type string is deprecated in /in/bbhZo on line 16 Fatal error: Uncaught Error: Call to a member function asXML() on bool in /in/bbhZo:18 Stack trace: #0 {main} thrown in /in/bbhZo on line 18
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $xml in /in/bbhZo on line 16 Deprecated: simplexml_load_string(): Passing null to parameter #1 ($data) of type string is deprecated in /in/bbhZo on line 16 Fatal error: Uncaught Error: Call to a member function asXML() on false in /in/bbhZo:18 Stack trace: #0 {main} thrown in /in/bbhZo on line 18
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:
43.82 ms | 401 KiB | 8 Q