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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1388 KiB | 17 Q