3v4l.org

run code in 300+ PHP versions simultaneously
<?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
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/lkMHN:3 Stack trace: #0 {main} thrown in /in/lkMHN on line 3
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:
33.31 ms | 401 KiB | 8 Q