3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://api.giphy.com/v1/gifs/search?q=hello&api_key=dc6zaTOxFJmzC"; $content = file_get_contents($url); $json = json_decode($content); echo $json->images[0]->fixedheight->url[0]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7b5X
function name:  (null)
number of ops:  16
compiled vars:  !0 = $url, !1 = $content, !2 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fapi.giphy.com%2Fv1%2Fgifs%2Fsearch%3Fq%3Dhello%26api_key%3Ddc6zaTOxFJmzC'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    5     9        FETCH_OBJ_R                                      ~8      !2, 'images'
         10        FETCH_DIM_R                                      ~9      ~8, 0
         11        FETCH_OBJ_R                                      ~10     ~9, 'fixedheight'
         12        FETCH_OBJ_R                                      ~11     ~10, 'url'
         13        FETCH_DIM_R                                      ~12     ~11, 0
         14        ECHO                                                     ~12
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.09 ms | 939 KiB | 18 Q