3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php # https://bugs.php.net/bug.php?id=39521&thanks=6 $dom = new DOMDocument; $dom->appendChild($dom->createElement('element', 'B & B')); echo $dom->saveXml();
based on mM1RK
Output for 5.3.20 - 7.2.0
Warning: DOMDocument::createElement(): unterminated entity reference B in /in/dM1jv on line 6 <?xml version="1.0"?> <element/>