3v4l.org

run code in 300+ 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 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/f2UFi
function name:  (null)
number of ops:  16
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        INIT_FCALL                                               'in_array'
         10        SEND_VAL                                                 5
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13      > JMPZ                                                     $6, ->15
   16    14    >   ECHO                                                     'jest'
   17    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.77 ms | 1399 KiB | 19 Q