3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('VENDOR_USER_ID', 1); define('RESELLER_USER_ID', 1); $user_id = !empty(VENDOR_USER_ID) ? VENDOR_USER_ID : RESELLER_USER_ID;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1H3IQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $user_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'VENDOR_USER_ID'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'RESELLER_USER_ID'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    4     8        FETCH_CONSTANT                                   ~3      'VENDOR_USER_ID'
          9        BOOL_NOT                                         ~4      ~3
         10        BOOL_NOT                                         ~5      ~4
         11      > JMPZ                                                     ~5, ->15
         12    >   FETCH_CONSTANT                                   ~6      'VENDOR_USER_ID'
         13        QM_ASSIGN                                        ~7      ~6
         14      > JMP                                                      ->17
         15    >   FETCH_CONSTANT                                   ~8      'RESELLER_USER_ID'
         16        QM_ASSIGN                                        ~7      ~8
         17    >   ASSIGN                                                   !0, ~7
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.61 ms | 1395 KiB | 15 Q