3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = simplexml_load_string('<price period="monthly"><![CDATA[1700]]></price>', 'SimpleXMLElement'); echo $x->asXML(); echo PHP_EOL; echo LIBXML_DOTTED_VERSION;
Output for 5.5.36, 5.6.22 - 5.6.28, 7.0.7 - 7.1.0
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> 2.9.4
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.0.6
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> 2.9.3
Output for 5.4.0 - 5.4.45, hhvm-3.10.0
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> 2.9.2
Output for 5.3.25 - 5.3.29
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> 2.9.1
Output for 5.3.15 - 5.3.24
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> 2.8.0
Output for 5.1.0 - 5.3.14
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> 2.7.8
Output for 5.0.2 - 5.0.5
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/RNtWd on line 7 LIBXML_DOTTED_VERSION
Output for 5.0.0 - 5.0.1
<?xml version="1.0"?> <price period="monthly"><![CDATA[1700]]></price> Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/RNtWd on line 6 PHP_EOL Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/RNtWd on line 7 LIBXML_DOTTED_VERSION
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/RNtWd on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/RNtWd on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/RNtWd on line 3