3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.92 ms | 1385 KiB | 15 Q