3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "11111111<mft:A>2222222</mft:A>1111111<mft:S>33333333</mft:S> <mft:A>99999</mft:A><mft:S>v44444444/mft:S><mft:R>555555</mft:R> <mft:S>6666666</mft:S><mft:A>7777777</mft:A>111111"; $xml = simplexml_load_string($input); $callback = $xml->{"mft:A"};
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/hmaMO on line 7 Warning: simplexml_load_string(): 11111111<mft:A>2222222</mft:A>1111111<mft:S>33333333</mft:S> in /in/hmaMO on line 7 Warning: simplexml_load_string(): ^ in /in/hmaMO on line 7 Warning: Attempt to read property "mft:A" on bool in /in/hmaMO on line 8
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/hmaMO on line 7 Warning: simplexml_load_string(): 11111111<mft:A>2222222</mft:A>1111111<mft:S>33333333</mft:S> in /in/hmaMO on line 7 Warning: simplexml_load_string(): ^ in /in/hmaMO on line 7 Warning: Attempt to read property "mft:A" on false in /in/hmaMO on line 8

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:
162.9 ms | 408 KiB | 5 Q