3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.74 ms | 1394 KiB | 19 Q