3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $data['uid'] = '1234'; if (!empty($data['uid'])) { $uid = $data['uid'][0]; print_r('bob'); } print_r($uid);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/K1bst
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'uid'
          2        OP_DATA                                                  '1234'
    6     3        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !0, 'uid'
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->12
    7     6    >   FETCH_DIM_R                                      ~6      !0, 'uid'
          7        FETCH_DIM_R                                      ~7      ~6, 0
          8        ASSIGN                                                   !1, ~7
    8     9        INIT_FCALL                                               'print_r'
         10        SEND_VAL                                                 'bob'
         11        DO_ICALL                                                 
   11    12    >   INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.1 ms | 1394 KiB | 15 Q