3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<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 7.0.0 - 7.3.0rc6
<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.
Output for 5.0.0 - 5.6.21
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"> Fatal error: Call to undefined function curl_init() in /in/egQCo on line 13
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"> Fatal error: Call to undefined function: curl_init() in /in/egQCo on line 13
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"> Fatal error: Call to undefined function: curl_init() in /in/egQCo on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"> Fatal error: Call to undefined function: curl_init() in /in/egQCo on line 13