3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $spotify1="https://itunes.apple.com/search?term="; $spotify2=" - "; $spotify3="&limit=1"; $spotify_url = "https://itunes.apple.com/search?term=Kylie+Minogue"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$spotify_url); $spotify = curl_exec($ch); curl_close($ch); $obj = json_decode($spotify); //$total = $obj->resultCount->results; //$img640_url = $obj->resultCount[0]->results[1]->artworkUrl100; echo $img640_url;
Output for 7.0.0 - 7.2.9
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/ApDAt:16 Stack trace: #0 {main} thrown in /in/ApDAt on line 16
Process exited with code 255.
Output for hhvm-3.22.0
Notice: Undefined variable: img640_url in /in/ApDAt on line -1
Output for hhvm-3.15.4 - 3.21.3
Notice: Undefined variable: img640_url in /in/ApDAt on line 27
Output for 5.6.30
Fatal error: Call to undefined function curl_init() in /in/ApDAt on line 16
Process exited with code 255.