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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ip0M4
function name:  (null)
number of ops:  17
compiled vars:  !0 = $track, !1 = $url, !2 = $get_data, !3 = $get_json, !4 = $cover
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'spotify%3Atrack%3A5ChkMS8OtdzJeqyybCc9R5'
    4     1        CONCAT                                           ~6      'https%3A%2F%2Fembed.spotify.com%2Foembed%2F%3Furl%3D', !0
          2        CONCAT                                           ~7      ~6, '%26format%3Djson%26callback%3Dspotify'
          3        ASSIGN                                                   !1, ~7
    5     4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !2, $9
    6     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
    8    12        FETCH_OBJ_R                                      ~13     !3, 'spotify'
         13        FETCH_OBJ_R                                      ~14     ~13, 'thumbnail_url'
         14        ASSIGN                                                   !4, ~14
   10    15        ECHO                                                     !4
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.41 ms | 1386 KiB | 17 Q