3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( is_user_logged_in() ) { ?> <?php $user_info = get_userdata(get_current_user_id()); global $current_user; get_currentuserinfo(); echo get_avatar( $current_user->ID, 64 ); echo '<br />'; echo '<br />'; echo 'Welcome, ' . $user_info->user_login . '!' . "n"; echo '<br />'; echo '<br />'; ?> <?php } else { ?> <?php } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 29
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/EYPmU
function name:  (null)
number of ops:  30
compiled vars:  !0 = $user_info, !1 = $current_user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'is_user_logged_in'
          1        DO_FCALL                                      0  $2      
          2      > JMPZ                                                     $2, ->29
    3     3    >   INIT_FCALL_BY_NAME                                       'get_userdata'
          4        INIT_FCALL_BY_NAME                                       'get_current_user_id'
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR_NO_REF_EX                                       $3
          7        DO_FCALL                                      0  $4      
          8        ASSIGN                                                   !0, $4
    4     9        BIND_GLOBAL                                              !1, 'current_user'
    5    10        INIT_FCALL_BY_NAME                                       'get_currentuserinfo'
         11        DO_FCALL                                      0          
    6    12        INIT_FCALL_BY_NAME                                       'get_avatar'
         13        CHECK_FUNC_ARG                                           
         14        FETCH_OBJ_FUNC_ARG                               $7      !1, 'ID'
         15        SEND_FUNC_ARG                                            $7
         16        SEND_VAL_EX                                              64
         17        DO_FCALL                                      0  $8      
         18        ECHO                                                     $8
    7    19        ECHO                                                     '%3Cbr+%2F%3E'
    8    20        ECHO                                                     '%3Cbr+%2F%3E'
    9    21        FETCH_OBJ_R                                      ~9      !0, 'user_login'
         22        CONCAT                                           ~10     'Welcome%2C+', ~9
         23        CONCAT                                           ~11     ~10, '%21'
         24        CONCAT                                           ~12     ~11, 'n'
         25        ECHO                                                     ~12
   10    26        ECHO                                                     '%3Cbr+%2F%3E'
   11    27        ECHO                                                     '%3Cbr+%2F%3E'
         28      > JMP                                                      ->29
   14    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.46 ms | 1395 KiB | 13 Q