3v4l.org

run code in 500+ PHP versions simultaneously
<?php $user = new stdClass(); $data = new stdClass(); $user->uid = 47; $data->field_targetuser = array_map('trim',explode(',','45, 409, 47, 100')); if(in_array($user->uid,$data->field_targetuser)) { print "Exists"; return true; } else { print "Not Exists"; return false; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcbdW
function name:  (null)
number of ops:  28
compiled vars:  !0 = $user, !1 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $2      'stdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    3     3        NEW                                                  $5      'stdClass'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $5
    4     6        ASSIGN_OBJ                                                   !0, 'uid'
          7        OP_DATA                                                      47
    5     8        INIT_FCALL                                                   'array_map'
          9        SEND_VAL                                                     'trim'
         10        INIT_FCALL                                                   'explode'
         11        SEND_VAL                                                     '%2C'
         12        SEND_VAL                                                     '45%2C+409%2C+47%2C+100'
         13        DO_ICALL                                             $10     
         14        SEND_VAR                                                     $10
         15        DO_ICALL                                             $11     
         16        ASSIGN_OBJ                                                   !1, 'field_targetuser'
         17        OP_DATA                                                      $11
    7    18        FETCH_OBJ_R                                          ~12     !0, 'uid'
         19        FETCH_OBJ_R                                          ~13     !1, 'field_targetuser'
         20        FRAMELESS_ICALL_2                in_array            ~14     ~12, ~13
         21      > JMPZ                                                         ~14, ->25
    9    22    >   ECHO                                                         'Exists'
   10    23      > RETURN                                                       <true>
    7    24*       JMP                                                          ->27
   12    25    >   ECHO                                                         'Not+Exists'
   13    26      > RETURN                                                       <false>
   15    27*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.57 ms | 2221 KiB | 15 Q