3v4l.org

run code in 300+ PHP versions simultaneously
<?php $volgArray[] = 'audi'; $volgArray[] = 'vw'; $volgArray[] = 'volvo'; print_r($volgArray); if (in_array("vw", $volgArray)) { echo "Match found"; } else { echo "Match not found"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
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: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tQj1l
function name:  (null)
number of ops:  18
compiled vars:  !0 = $volgArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'audi'
    4     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  'vw'
    5     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  'volvo'
    7     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'in_array'
         10        SEND_VAL                                                 'vw'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13      > JMPZ                                                     $5, ->16
   10    14    >   ECHO                                                     'Match+found'
         15      > JMP                                                      ->17
   14    16    >   ECHO                                                     'Match+not+found'
   15    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.94 ms | 1386 KiB | 17 Q