3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_subjected_to_search =array( array( 'name' => 'flash', 'type' => 'hero' ), array( 'name' => 'zoom', 'type' => 'villian' ), array( 'name' => 'snart', 'type' => 'antihero' ) ); $key = array_search('snart', array_column($array_subjected_to_search, 'name')); var_dump($array_subjected_to_search[$key]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IKW94
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array_subjected_to_search, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   18     1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 'snart'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'name'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
   19    10        INIT_FCALL                                               'var_dump'
         11        FETCH_DIM_R                                      ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.28 ms | 1427 KiB | 16 Q