3v4l.org

run code in 300+ 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 = 25, Position 2 = 28
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcbdW
function name:  (null)
number of ops:  31
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        INIT_FCALL                                               'in_array'
         19        FETCH_OBJ_R                                      ~12     !0, 'uid'
         20        SEND_VAL                                                 ~12
         21        FETCH_OBJ_R                                      ~13     !1, 'field_targetuser'
         22        SEND_VAL                                                 ~13
         23        DO_ICALL                                         $14     
         24      > JMPZ                                                     $14, ->28
    9    25    >   ECHO                                                     'Exists'
   10    26      > RETURN                                                   <true>
    7    27*       JMP                                                      ->30
   12    28    >   ECHO                                                     'Not+Exists'
   13    29      > RETURN                                                   <false>
   15    30*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.89 ms | 1005 KiB | 16 Q