3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $URL = "http://www.bseindia.com"; $ch = curl_init($URL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $domXML = simplexml_load_string(curl_exec($ch)); curl_close($ch); //Access the dom element you want print '<pre>'; print_r($domXML); print '</pre>'; ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/WpHOo:5 Stack trace: #0 {main} thrown in /in/WpHOo on line 5
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/WpHOo on line 5
Process exited with code 255.