3v4l.org

run code in 300+ PHP versions simultaneously
<?php $track = "spotify:track:5ChkMS8OtdzJeqyybCc9R5"; $url = "https://embed.spotify.com/oembed/?url=".$track."&format=json&callback=spotify"; $get_data = file_get_contents($url); $get_json = json_decode($get_data); $cover = $get_json->spotify->thumbnail_url; echo $cover;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/ip0M4 on line 5 Warning: file_get_contents(): open_basedir restriction in effect. File(https://embed.spotify.com/oembed/?url=spotify:track:5ChkMS8OtdzJeqyybCc9R5&format=json&callback=spotify) is not within the allowed path(s): (/tmp:/in:/etc) in /in/ip0M4 on line 5 Warning: file_get_contents(https://embed.spotify.com/oembed/?url=spotify:track:5ChkMS8OtdzJeqyybCc9R5&format=json&callback=spotify): Failed to open stream: Operation not permitted in /in/ip0M4 on line 5 Warning: Attempt to read property "spotify" on null in /in/ip0M4 on line 8 Warning: Attempt to read property "thumbnail_url" on null in /in/ip0M4 on line 8

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:
31.06 ms | 403 KiB | 8 Q