3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "hello"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://instagram.com/ngatiajim'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $json = curl_exec($ch); curl_close($ch); echo $json; $json = strstr($json, '{"entry_data"'); $json = strstr($json, '</script>', true); $json = rtrim($json,';'); $data = json_decode($json,true); $img1 = $data['entry_data']['UserProfile'][0]['userMedia'][0]['images']['thumbnail']['url']; $img2 = $data['entry_data']['UserProfile'][0]['userMedia'][1]['images']['thumbnail']['url']; $img3 = $data['entry_data']['UserProfile'][0]['userMedia'][2]['images']['thumbnail']['url']; print '<img src="'.$img1.'" />'; print '<img src="'.$img2.'" />'; print '<img src="'.$img3.'" />'; echo $data;
Output for 7.0.0 - 7.2.0
hello Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/7QVWf:6 Stack trace: #0 {main} thrown in /in/7QVWf on line 6
Process exited with code 255.
Output for 5.3.21 - 5.6.28
hello Fatal error: Call to undefined function curl_init() in /in/7QVWf on line 6
Process exited with code 255.