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)); dump($maxs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IovFY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $maxs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     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
   14     9        INIT_FCALL_BY_NAME                                       'dump'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.95 ms | 1398 KiB | 17 Q