3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $no="919738010001"; $apiToken="d8PATnRR7d"; // PHPHive Truecaller API Token, Obtain it from https://tcapi.phphive.info/console/ $uri = 'https://tcapi.phphive.info/'.$apiToken.'/search/'.$no; $ch = curl_init($uri); curl_setopt_array($ch, array( CURLOPT_HTTPHEADER => array('X-User: PHPHive'), CURLOPT_RETURNTRANSFER =>true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_VERBOSE => 1 )); $response = curl_exec($ch); curl_close($ch); echo $response;
based on iC3R0
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/tf7bc:7 Stack trace: #0 {main} thrown in /in/tf7bc on line 7
Process exited with code 255.
Output for hhvm-3.10.1 - 3.22.0
* Hostname was NOT found in DNS cache * Could not resolve host: tcapi.phphive.info * Closing connection 0
Output for 5.0.0 - 5.6.30
Fatal error: Call to undefined function curl_init() in /in/tf7bc on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl_init() in /in/tf7bc on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl_init() in /in/tf7bc on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl_init() in /in/tf7bc on line 7