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: " . $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 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 5
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 26
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 5
Branch analysis from position: 33
Branch analysis from position: 5
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 5
Branch analysis from position: 33
Branch analysis from position: 5
filename:       /in/pYFDn
function name:  (null)
number of ops:  37
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                                                      ->30
    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, ->26
   10    11    >   FETCH_DIM_R                                      ~13     !0, !3
         12        ASSIGN                                                   !2, ~13
   11    13        CONCAT                                           ~15     'min+result+is%3A+', !2
         14        ROPE_INIT                                     3  ~17     'and+'
         15        ROPE_ADD                                      1  ~17     ~17, !3
         16        ROPE_END                                      2  ~16     ~17, '+is+currently%3A+'
         17        CONCAT                                           ~19     ~15, ~16
         18        CONCAT                                           ~20     ~19, !3
         19        ROPE_INIT                                     3  ~22     '+and+'
         20        ROPE_ADD                                      1  ~22     ~22, !1
         21        ROPE_END                                      2  ~21     ~22, '+is+currently%3A+'
         22        CONCAT                                           ~24     ~20, ~21
         23        CONCAT                                           ~25     ~24, !1
         24        ECHO                                                     ~25
         25      > JMP                                                      ->29
   15    26    >   FETCH_DIM_R                                      ~26     !0, !1
         27        ASSIGN                                                   !2, ~26
   16    28        PRE_INC                                                  !1
    6    29    >   PRE_INC                                                  !3
         30    >   COUNT                                            ~30     !0
         31        IS_SMALLER                                               !3, ~30
         32      > JMPNZ                                                    ~31, ->5
   25    33    >   INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !2
         35        DO_ICALL                                                 
   28    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1400 KiB | 15 Q