3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'product1' => 10 , 'product2' => 15 , 'product3' => 14); echo array_keys($array, max($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8LjDZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $values, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !1
          3        INIT_FCALL                                               'max'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.84 ms | 1394 KiB | 17 Q