3v4l.org

run code in 300+ PHP versions simultaneously
<?php // From URL to get webpage contents. $url = "https://boi.org.il/PublicApi/GetExchangeRate?key=USD"; // Initialize a CURL session. $ch = curl_init(); // Return Page contents. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //grab URL and pass it to the variable. curl_setopt($ch, CURLOPT_URL, $url); $result = curl_exec($ch); echo $result; ?>
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/uuYMI:7 Stack trace: #0 {main} thrown in /in/uuYMI on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.34 ms | 405 KiB | 5 Q