3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $feed_url = 'http://www.boi.org.il/currency.xml'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $feed_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); $feedContent = curl_exec($curl); curl_close($curl); echo $feedContent; exit();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/W2I29:7 Stack trace: #0 {main} thrown in /in/W2I29 on line 7
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/W2I29 on line 7
Process exited with code 255.