3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new stdClass(); $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 = 8, Position 2 = 20
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 20
filename:       /in/Ni4mX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $data, !1 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'uid'
          4        OP_DATA                                                  '234'
    6     5        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, 'uid'
          6        BOOL_NOT                                         ~7      ~6
          7      > JMPZ                                                     ~7, ->20
    7     8    >   FETCH_OBJ_R                                      ~8      !0, 'uid'
          9        FETCH_DIM_R                                      ~9      ~8, 0
         10        ASSIGN                                                   !1, ~9
    8    11        INIT_FCALL                                               'print_r'
         12        CONCAT                                           ~11     'UID', !1
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
    9    15        ISSET_ISEMPTY_CV                                         !1
         16      > JMPZ                                                     ~13, ->20
   10    17    >   INIT_FCALL                                               'print_r'
         18        SEND_VAL                                                 'empty'
         19        DO_ICALL                                                 
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.07 ms | 1395 KiB | 15 Q