3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getHighest($values = array()) { return end(sort($values)); } $array = array( 'a' => '123', 'b' => '119', 'c' => '123', 'd' => '8', ); $highest = getHighest($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ak6of
function name:  (null)
number of ops:  6
compiled vars:  !0 = $array, !1 = $highest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   16     1        INIT_FCALL                                               'gethighest'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
          5      > RETURN                                                   1

Function gethighest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ak6of
function name:  getHighest
number of ops:  9
compiled vars:  !0 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      <array>
    6     1        INIT_FCALL                                               'end'
          2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR_NO_REF                               0          $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
    7     8*     > RETURN                                                   null

End of function gethighest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.14 ms | 1397 KiB | 18 Q