3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array (array('name'=> "harold", 'age'=> 24),array('name'=> "sonia", 'age'=> 25),array('name'=> "isaiah", 'age'=> 5),); $j = 1; $min_result = array(); for($i=0; $i<count($test); $i++){ if($test[$i]['age'] < $test[$j]['age']){ $min_result = $test[$i]; echo "min result is: " . print_r($min_result) . "and $i is currently: ". $i . " and $j is currently: " . $j; } else{ $min_result = $test[$j]; $j++; } } var_dump($min_result) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 5
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 29
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 5
Branch analysis from position: 36
Branch analysis from position: 5
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 5
Branch analysis from position: 36
Branch analysis from position: 5
filename:       /in/sIEkO
function name:  (null)
number of ops:  40
compiled vars:  !0 = $test, !1 = $j, !2 = $min_result, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 1
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->33
    8     5    >   FETCH_DIM_R                                      ~8      !0, !3
          6        FETCH_DIM_R                                      ~9      ~8, 'age'
          7        FETCH_DIM_R                                      ~10     !0, !1
          8        FETCH_DIM_R                                      ~11     ~10, 'age'
          9        IS_SMALLER                                               ~9, ~11
         10      > JMPZ                                                     ~12, ->29
   10    11    >   FETCH_DIM_R                                      ~13     !0, !3
         12        ASSIGN                                                   !2, ~13
   11    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $15     
         16        CONCAT                                           ~16     'min+result+is%3A+', $15
         17        ROPE_INIT                                     3  ~18     'and+'
         18        ROPE_ADD                                      1  ~18     ~18, !3
         19        ROPE_END                                      2  ~17     ~18, '+is+currently%3A+'
         20        CONCAT                                           ~20     ~16, ~17
         21        CONCAT                                           ~21     ~20, !3
         22        ROPE_INIT                                     3  ~23     '+and+'
         23        ROPE_ADD                                      1  ~23     ~23, !1
         24        ROPE_END                                      2  ~22     ~23, '+is+currently%3A+'
         25        CONCAT                                           ~25     ~21, ~22
         26        CONCAT                                           ~26     ~25, !1
         27        ECHO                                                     ~26
         28      > JMP                                                      ->32
   15    29    >   FETCH_DIM_R                                      ~27     !0, !1
         30        ASSIGN                                                   !2, ~27
   16    31        PRE_INC                                                  !1
    6    32    >   PRE_INC                                                  !3
         33    >   COUNT                                            ~31     !0
         34        IS_SMALLER                                               !3, ~31
         35      > JMPNZ                                                    ~32, ->5
   25    36    >   INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !2
         38        DO_ICALL                                                 
   28    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.47 ms | 1400 KiB | 17 Q