3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = xmlwriter_open_memory(); xmlwriter_start_pi($xml, 'lol'); xmlwriter_end_pi($xml); var_dump(xmlwriter_flush($xml));
based on sTBGh
Output for 5.1.2 - 7.1.0
string(7) "<?lol?>"
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function xmlwriter_open_memory() in /in/80Gu3 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: xmlwriter_open_memory() in /in/80Gu3 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: xmlwriter_open_memory() in /in/80Gu3 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: xmlwriter_open_memory() in /in/80Gu3 on line 3