3v4l.org

run code in 300+ PHP versions simultaneously
<?php $art = "hotlingbling"; $api = "AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg"; $art = urlencode($art); $imgWord = "https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&q={$art}&type=video&key={$api}"; $json = file_get_contents($imgWord); $data = json_decode($json, true); var_dump($json['items']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2GqH
function name:  (null)
number of ops:  25
compiled vars:  !0 = $art, !1 = $api, !2 = $imgWord, !3 = $json, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hotlingbling'
    4     1        ASSIGN                                                   !1, 'AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg'
    6     2        INIT_FCALL                                               'urlencode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !0, $7
    7     6        ROPE_INIT                                     4  ~10     'https%3A%2F%2Fwww.googleapis.com%2Fyoutube%2Fv3%2Fsearch%3Fpart%3Dsnippet%26maxResults%3D10%26q%3D'
          7        ROPE_ADD                                      1  ~10     ~10, !0
          8        ROPE_ADD                                      2  ~10     ~10, '%26type%3Dvideo%26key%3D'
          9        ROPE_END                                      3  ~9      ~10, !1
         10        ASSIGN                                                   !2, ~9
    8    11        INIT_FCALL                                               'file_get_contents'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !3, $13
    9    15        INIT_FCALL                                               'json_decode'
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $15     
         19        ASSIGN                                                   !4, $15
   10    20        INIT_FCALL                                               'var_dump'
         21        FETCH_DIM_R                                      ~17     !3, 'items'
         22        SEND_VAL                                                 ~17
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.1 ms | 1395 KiB | 21 Q