3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('0'=>array('a'=>'alpha','b'=>'bravo','c'=>'charlie'), '1'=>array('d'=>'delta','e'=>'echo','f'=>'foxtrot'), '2'=>array('g'=>'gulf','h'=>'hotel','i'=>'indian')); if ($key = array_search('charlie',$arr) !== false) { echo $arr[$key]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/a6IZg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 'charlie'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        TYPE_CHECK                                  1018  ~4      $3
          6        ASSIGN                                           ~5      !1, ~4
          7      > JMPZ                                                     ~5, ->10
    7     8    >   FETCH_DIM_R                                      ~6      !0, !1
          9        ECHO                                                     ~6
    8    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1394 KiB | 15 Q