3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode(file_get_contents('https://api.mojang.com/user/profiles/a446cfcf74b34c7fa8741b5f84d30da6/names'),true); print_r($a[count($a)-1]['name']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tkg32
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'https%3A%2F%2Fapi.mojang.com%2Fuser%2Fprofiles%2Fa446cfcf74b34c7fa8741b5f84d30da6%2Fnames'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    4     8        INIT_FCALL                                               'print_r'
          9        COUNT                                            ~4      !0
         10        SUB                                              ~5      ~4, 1
         11        FETCH_DIM_R                                      ~6      !0, ~5
         12        FETCH_DIM_R                                      ~7      ~6, 'name'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.34 ms | 1394 KiB | 19 Q