3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='<?xml version="1.0" encoding="UTF-8" ?>'; $xml.='<Test> <Item> <Price>0.53</Price> <Text>This is some test text. We need to see how it does.&lt;br&gt This is a second line of text.</Text> </Item> </Test>'; $result=simplexml_load_string($xml); echo $result->Item->Text;
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 4: parser error : EntityRef: expecting ';' in /in/JEVs2 on line 11 Warning: simplexml_load_string(): <Text>This is some test text. We need to see how it does.&lt;br&gt in /in/JEVs2 on line 11 Warning: simplexml_load_string(): ^ in /in/JEVs2 on line 11 Warning: Attempt to read property "Item" on bool in /in/JEVs2 on line 13 Warning: Attempt to read property "Text" on null in /in/JEVs2 on line 13
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 4: parser error : EntityRef: expecting ';' in /in/JEVs2 on line 11 Warning: simplexml_load_string(): <Text>This is some test text. We need to see how it does.&lt;br&gt in /in/JEVs2 on line 11 Warning: simplexml_load_string(): ^ in /in/JEVs2 on line 11 Warning: Attempt to read property "Item" on false in /in/JEVs2 on line 13 Warning: Attempt to read property "Text" on null in /in/JEVs2 on line 13

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