3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $data['uid'] = 234; if (!empty($data['uid'])) { $uid = $data['uid'][0]; print_r('UID' . $uid); if (empty($uid)) { print_r('empty'); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 18
filename:       /in/USTcM
function name:  (null)
number of ops:  19
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                                                  234
    6     3        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !0, 'uid'
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->18
    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        CONCAT                                           ~9      'UID', !1
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
    9    13        ISSET_ISEMPTY_CV                                         !1
         14      > JMPZ                                                     ~11, ->18
   10    15    >   INIT_FCALL                                               'print_r'
         16        SEND_VAL                                                 'empty'
         17        DO_ICALL                                                 
   12    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.85 ms | 1395 KiB | 15 Q