3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = []; $array2 = []; $array1[] = [ "b" => "sky", ]; $array2[] = [ "b" => "moon", ]; if (array_search(sky, array_column($array1, 'b')) !== FALSE) { echo 'FOUND!'; } else { echo 'NOT FOUND!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i3iLS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN_DIM                                               !0
    6     3        OP_DATA                                                  <array>
    9     4        ASSIGN_DIM                                               !1
   10     5        OP_DATA                                                  <array>
   13     6        INIT_FCALL                                               'array_search'
          7        FETCH_CONSTANT                                   ~6      'sky'
          8        SEND_VAL                                                 ~6
          9        INIT_FCALL                                               'array_column'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'b'
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        TYPE_CHECK                                  1018          $8
         16      > JMPZ                                                     ~9, ->19
   14    17    >   ECHO                                                     'FOUND%21'
         18      > JMP                                                      ->20
   16    19    >   ECHO                                                     'NOT+FOUND%21'
   17    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.16 ms | 1395 KiB | 17 Q