3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array("hello", "world", "foobar"); $value1 = "foobar"; $value2 = "test"; if(!in_array($value1, $array)) $array[] = $value1; // this will not be added because foobar already exists in the array if(!in_array($value2, $array)) $array[] = $value2; // this will be added because it does not exist in the array print_r($array); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/Xdrem
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $value1, !2 = $value2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                                       !1, 'foobar'
    4     2        ASSIGN                                                       !2, 'test'
    5     3        FRAMELESS_ICALL_2                in_array            ~6      !1, !0
          4        BOOL_NOT                                             ~7      ~6
          5      > JMPZ                                                         ~7, ->8
          6    >   ASSIGN_DIM                                                   !0
          7        OP_DATA                                                      !1
    6     8    >   FRAMELESS_ICALL_2                in_array            ~9      !2, !0
          9        BOOL_NOT                                             ~10     ~9
         10      > JMPZ                                                         ~10, ->13
         11    >   ASSIGN_DIM                                                   !0
         12        OP_DATA                                                      !2
    7    13    >   INIT_FCALL                                                   'print_r'
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                                     
    8    16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.35 ms | 3086 KiB | 14 Q