3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(alarm => '5', topeni => '11', rezerva => '3', cidlo => '9'); $key = array_search('5', $array); // $key = 2; echo $key; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vv1tP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~2      'alarm'
          1        INIT_ARRAY                                       ~3      '5', ~2
          2        FETCH_CONSTANT                                   ~4      'topeni'
          3        ADD_ARRAY_ELEMENT                                ~3      '11', ~4
          4        FETCH_CONSTANT                                   ~5      'rezerva'
          5        ADD_ARRAY_ELEMENT                                ~3      '3', ~5
          6        FETCH_CONSTANT                                   ~6      'cidlo'
          7        ADD_ARRAY_ELEMENT                                ~3      '9', ~6
          8        ASSIGN                                                   !0, ~3
    4     9        INIT_FCALL                                               'array_search'
         10        SEND_VAL                                                 '5'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    5    14        ECHO                                                     !1
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.3 ms | 1394 KiB | 15 Q