3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml1 = '<value><dateTime.iso8601>20120810T12:03:12</dateTime.iso8601></value>'; $xml2 = '<value><dateTime.iso8601>20120810T12:03:12+02:00</dateTime.iso8601></value>'; $xml3 = '<value><dateTime.iso8601>20120810T12:03:12Z</dateTime.iso8601></value>'; echo date ('c', time ()) . PHP_EOL; $date1 = xmlrpc_decode ($xml1); $date2 = xmlrpc_decode ($xml2); $date3 = xmlrpc_decode ($xml3); var_dump ($date1, $date2, $date3);
Output for 7.0.0 - 7.1.0
2014-09-15T14:38:38+02:00 Fatal error: Uncaught Error: Call to undefined function xmlrpc_decode() in /in/lYtb6:8 Stack trace: #0 {main} thrown in /in/lYtb6 on line 8
Process exited with code 255.
Output for 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0
2014-09-15T14:38:38+02:00 Fatal error: Call to undefined function xmlrpc_decode() in /in/lYtb6 on line 8
Process exited with code 255.
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lYtb6 on line 6 2014-09-15T14:38:38+02:00PHP_EOL Fatal error: Call to undefined function xmlrpc_decode() in /in/lYtb6 on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
c Fatal error: Call to undefined function: xmlrpc_decode() in /in/lYtb6 on line 8
Process exited with code 255.
Output for 4.3.10 - 4.4.4
c Fatal error: Call to undefined function: xmlrpc_decode() in /in/lYtb6 on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lYtb6 on line 6 cPHP_EOL Fatal error: Call to undefined function: xmlrpc_decode() in /in/lYtb6 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lYtb6 on line 6 cPHP_EOL Fatal error: Call to undefined function: xmlrpc_decode() in /in/lYtb6 on line 8