3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 1 => array( 'message_id' => 1, 'points' => 3, ), 2 => array( 'message_id' => 2, 'points' => 2, ), 3 => array( 'message_id' => 3, 'points' => 2, ), ); $hieghest = 0; foreach ($array as $key => $arr) { if($arr['message_id'] > $hieghest) $hieghest = $arr['message_id']; } echo "Hieghest: " . $hieghest;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/or0FO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $hieghest, !2 = $arr, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        ASSIGN                                                   !1, 0
   20     2      > FE_RESET_R                                       $6      !0, ->11
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->11
          4    >   ASSIGN                                                   !3, ~7
   21     5        FETCH_DIM_R                                      ~9      !2, 'message_id'
          6        IS_SMALLER                                               !1, ~9
          7      > JMPZ                                                     ~10, ->10
   22     8    >   FETCH_DIM_R                                      ~11     !2, 'message_id'
          9        ASSIGN                                                   !1, ~11
   20    10    > > JMP                                                      ->3
         11    >   FE_FREE                                                  $6
   25    12        CONCAT                                           ~13     'Hieghest%3A+', !1
         13        ECHO                                                     ~13
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.44 ms | 1002 KiB | 13 Q