3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = <<<XML <programme channel="cnn.info" start="20131027060000" stop="20131027061500"> <title>hello CONTENT</title> <premiere/></programme> XML; $xml = simplexml_load_string($string); echo $xml->programme->title . "<br />"; echo "Time: left" . $time_left;
Output for 5.0.4 - 5.1.1, 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<br /> Notice: Undefined variable: time_left in /in/7J2JX on line 11 Time: left
Output for 5.1.2
<br /> Notice: Undefined variable: time_left in /in/7J2JX on line 12 Time: left
Output for 5.0.0 - 5.0.3
<br /> Notice: Undefined variable: time_left in /in/7J2JX on line 11 Time: left
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/7J2JX on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/7J2JX on line 8
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/7J2JX on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/7J2JX on line 8