3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $spotify1="https://itunes.apple.com/search?term="; $spotify2=" - "; $spotify3="&limit=1"; $json_text = file_get_contents("https://itunes.apple.com/search?term=Kylie+Minogue"); $obj = json_decode($json_text); //$total = $obj->resultCount->results; //$img640_url = $obj->resultCount[0]->results[1]->artworkUrl100; echo $img640_url;
Output for 5.6.30, 7.0.0 - 7.2.9
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/CUNUr on line 14 Warning: file_get_contents(): open_basedir restriction in effect. File(https://itunes.apple.com/search?term=Kylie+Minogue) is not within the allowed path(s): (/tmp:/in:/etc) in /in/CUNUr on line 14 Warning: file_get_contents(https://itunes.apple.com/search?term=Kylie+Minogue): failed to open stream: Operation not permitted in /in/CUNUr on line 14 Notice: Undefined variable: img640_url in /in/CUNUr on line 23
Output for hhvm-3.22.0
Warning: Failed to open https://itunes.apple.com/search?term=Kylie+Minogue (Could not resolve host: itunes.apple.com) in /in/CUNUr on line -1 Notice: Undefined variable: img640_url in /in/CUNUr on line -1
Output for hhvm-3.15.4 - 3.21.3
Warning: Failed to open https://itunes.apple.com/search?term=Kylie+Minogue (Could not resolve host: itunes.apple.com) in /in/CUNUr on line 14 Notice: Undefined variable: img640_url in /in/CUNUr on line 23