3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vals = [["foo" => "bar", "quux" => 3], ["foo" => "baz", "quux => 4"]]; if (in_array(["foo" => "bar", "quux" => 3], $vals)) { echo "first one found\n"; } else { echo "first one not found\n"; } if (in_array(["foo" => "quuux", "quux" => 27], $vals)) { echo "second one found\n"; } else { echo "second one not found\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
Branch analysis from position: 16
filename:       /in/feiZS
function name:  (null)
number of ops:  18
compiled vars:  !0 = $vals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 <array>
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->8
    6     6    >   ECHO                                                     'first+one+found%0A'
          7      > JMP                                                      ->9
    8     8    >   ECHO                                                     'first+one+not+found%0A'
   12     9    >   INIT_FCALL                                               'in_array'
         10        SEND_VAL                                                 <array>
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $3      
         13      > JMPZ                                                     $3, ->16
   13    14    >   ECHO                                                     'second+one+found%0A'
         15      > JMP                                                      ->17
   15    16    >   ECHO                                                     'second+one+not+found%0A'
   16    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.74 ms | 1395 KiB | 15 Q