3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "* XML:\n"; echo simplexml_load_string('<foo>123</foo>'); echo "\n---\n"; echo "* PHP <?= echo shortcut:\n"; echo simplexml_load_string('<foo>456<?= bar(); ?></foo>'); echo "\n---\n"; echo "* PHP <?php but no ?>:\n"; echo simplexml_load_string('<foo>789<?php baz();</foo>'); echo "\n---\n"; echo "* PHP block with the ending tag:\n"; echo simplexml_load_string('<foo>abc<?php abc(); ?></foo>');
Output for git.master, git.master_jit, rfc.property-hooks
* XML: 123 --- * PHP <?= echo shortcut: Warning: simplexml_load_string(): Entity: line 1: parser error : xmlParsePI : no target name in /in/2sQ6N on line 7 Warning: simplexml_load_string(): <foo>456<?= bar(); ?></foo> in /in/2sQ6N on line 7 Warning: simplexml_load_string(): ^ in /in/2sQ6N on line 7 --- * PHP <?php but no ?>: Warning: simplexml_load_string(): Entity: line 1: parser error : ParsePI: PI php never end ... in /in/2sQ6N on line 11 Warning: simplexml_load_string(): <foo>789<?php baz();</foo> in /in/2sQ6N on line 11 Warning: simplexml_load_string(): ^ in /in/2sQ6N on line 11 Warning: simplexml_load_string(): Entity: line 1: parser error : Premature end of data in tag foo line 1 in /in/2sQ6N on line 11 Warning: simplexml_load_string(): <foo>789<?php baz();</foo> in /in/2sQ6N on line 11 Warning: simplexml_load_string(): ^ in /in/2sQ6N on line 11 --- * PHP block with the ending tag: abc

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:
59.49 ms | 403 KiB | 8 Q