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($data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/YAFHq
function name:  (null)
number of ops:  13
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, ->9
    7     6    >   FETCH_DIM_R                                      ~6      !0, 'uid'
          7        FETCH_DIM_R                                      ~7      ~6, 0
          8        ASSIGN                                                   !1, ~7
   10     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.86 ms | 1394 KiB | 15 Q