3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ApDAt
function name:  (null)
number of ops:  26
compiled vars:  !0 = $spotify1, !1 = $spotify2, !2 = $spotify3, !3 = $spotify_url, !4 = $ch, !5 = $spotify, !6 = $obj, !7 = $img640_url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fitunes.apple.com%2Fsearch%3Fterm%3D'
    7     1        ASSIGN                                                   !1, '+-+'
    8     2        ASSIGN                                                   !2, '%26limit%3D1'
   13     3        ASSIGN                                                   !3, 'https%3A%2F%2Fitunes.apple.com%2Fsearch%3Fterm%3DKylie%2BMinogue'
   16     4        INIT_FCALL_BY_NAME                                       'curl_init'
          5        DO_FCALL                                      0  $12     
          6        ASSIGN                                                   !4, $12
   17     7        INIT_FCALL_BY_NAME                                       'curl_setopt'
          8        SEND_VAR_EX                                              !4
          9        FETCH_CONSTANT                                   ~14     'CURLOPT_URL'
         10        SEND_VAL_EX                                              ~14
         11        SEND_VAR_EX                                              !3
         12        DO_FCALL                                      0          
   18    13        INIT_FCALL_BY_NAME                                       'curl_exec'
         14        SEND_VAR_EX                                              !4
         15        DO_FCALL                                      0  $16     
         16        ASSIGN                                                   !5, $16
   19    17        INIT_FCALL_BY_NAME                                       'curl_close'
         18        SEND_VAR_EX                                              !4
         19        DO_FCALL                                      0          
   24    20        INIT_FCALL                                               'json_decode'
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !6, $19
   27    24        ECHO                                                     !7
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.3 ms | 1395 KiB | 15 Q