3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = [ [ 'id' => 3, ], [ 'id' => 5, ] ]; $ids = array_column($data, 'id'); var_dump($ids); if (in_array(5, $ids)) { echo 'jest'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/f2UFi
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $ids
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'array_column'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'id'
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
   13     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
   15     9        FRAMELESS_ICALL_2                in_array            ~6      5, !1
         10      > JMPZ                                                         ~6, ->12
   16    11    >   ECHO                                                         'jest'
   17    12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.08 ms | 1860 KiB | 15 Q