3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array( "allan"=>90, "mark"=>95, "jason"=>80 ); $value = max($scores); echo $key = array_search($value, $scores);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WhVaN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $scores, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'max'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   11     5        INIT_FCALL                                               'array_search'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                           ~7      !2, $6
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.72 ms | 1010 KiB | 15 Q