3v4l.org

run code in 300+ PHP versions simultaneously
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"><?php $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json')); curl_setopt($c, CURLOPT_URL, 'http://data.bter.com/api/1/ticker/ifc_ltc'); $avg = curl_exec($c); curl_close($c); $obj = json_decode($avg); ?> IFC/LTC <strong>Buy</strong> <?php echo print_r($obj->{'sell'}."\n", true);?></a> <strong>Sell </strong><?php echo print_r($obj->{'buy'}."\n", true);?></a></div>
Output for git.master, git.master_jit, rfc.property-hooks
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"> Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/egQCo:13 Stack trace: #0 {main} thrown in /in/egQCo on line 13
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:
39.17 ms | 401 KiB | 8 Q