3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(simplexml_load_string('<root> <text name="123" value="123"/> <fql name=""> </fql> <dataset> <group> <control-group id="0 - dD" name=> <control id="1 - Name"/> </control-group> </group> </dataset> </root>'));
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: simplexml_load_string(): Entity: line 8: parser error : AttValue: " or ' expected in /in/IKrRO on line 3 Warning: simplexml_load_string(): <control-group id="0 - dD" name=> in /in/IKrRO on line 3 Warning: simplexml_load_string(): ^ in /in/IKrRO on line 3 bool(false)
Output for 5.3.20 - 7.0.6, 7.1.0
Warning: simplexml_load_string(): Entity: line 8: parser error : AttValue: " or ' expected in /in/IKrRO on line 15 Warning: simplexml_load_string(): <control-group id="0 - dD" name=> in /in/IKrRO on line 15 Warning: simplexml_load_string(): ^ in /in/IKrRO on line 15 bool(false)