3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [2=>['call'=>true, 'id'=>1],5=>['call'=>false, 'id'=>0]]; $ids = array_keys(array_filter(array_column($array, 'call', 'id'))); var_dump($ids);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TIZ7v
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_keys'
          2        INIT_FCALL                                               'array_filter'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'call'
          6        SEND_VAL                                                 'id'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.65 ms | 1083 KiB | 17 Q