3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Data = array( '0' => 'car', '1' => 'bike', '2' => 'bus', '3' => 'bike', '4' => 'boat' ); krsort($Data); $key = array_search('bike', $Data); echo $key;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fYOgN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $Data, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'krsort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
   11     4        INIT_FCALL                                               'array_search'
          5        SEND_VAL                                                 'bike'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   12     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.15 ms | 1010 KiB | 15 Q