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 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2SoQQ
function name:  (null)
number of ops:  20
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        SEND_VAL                                                 'sky'
          8        INIT_FCALL                                               'array_column'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'b'
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        TYPE_CHECK                                  1018          $7
         15      > JMPZ                                                     ~8, ->18
   14    16    >   ECHO                                                     'FOUND%21'
         17      > JMP                                                      ->19
   16    18    >   ECHO                                                     'NOT+FOUND%21'
   17    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.85 ms | 1395 KiB | 17 Q