3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cur=1; $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43","Rob"=>"43"); $new_array = array(); arsort($age, SORT_NUMERIC); $new_array = $age; $key=array_search(max($new_array),$new_array); while ( $cur > 0) { echo $key; $cur--; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 17
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 17
Branch analysis from position: 21
Branch analysis from position: 17
filename:       /in/6AWCV
function name:  (null)
number of ops:  22
compiled vars:  !0 = $cur, !1 = $age, !2 = $new_array, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    5     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'arsort'
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    8     7        ASSIGN                                                   !2, !1
    9     8        INIT_FCALL                                               'array_search'
          9        INIT_FCALL                                               'max'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   11    16      > JMP                                                      ->19
   12    17    >   ECHO                                                     !3
   13    18        PRE_DEC                                                  !0
   11    19    >   IS_SMALLER                                               0, !0
         20      > JMPNZ                                                    ~13, ->17
   14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.4 ms | 1399 KiB | 19 Q