3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
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.

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:
55.31 ms | 401 KiB | 8 Q