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]; } 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 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
filename:       /in/CcoFd
function name:  (null)
number of ops:  26
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                                                      ->19
    8     5    >   FETCH_DIM_R                                      ~8      !0, !3
          6        FETCH_DIM_R                                      ~9      ~8, 'age'
          7        FETCH_CONSTANT                                   ~11     'age'
          8        FETCH_DIM_R                                      ~10     !0, !1
          9        FETCH_DIM_R                                      ~12     ~10, ~11
         10        IS_SMALLER                                               ~9, ~12
         11      > JMPZ                                                     ~13, ->15
   10    12    >   FETCH_DIM_R                                      ~14     !0, !3
         13        ASSIGN                                                   !2, ~14
         14      > JMP                                                      ->18
   13    15    >   FETCH_DIM_R                                      ~16     !0, !1
         16        ASSIGN                                                   !2, ~16
   14    17        PRE_INC                                                  !1
    6    18    >   PRE_INC                                                  !3
         19    >   COUNT                                            ~20     !0
         20        IS_SMALLER                                               !3, ~20
         21      > JMPNZ                                                    ~21, ->5
   22    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
   25    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.52 ms | 1396 KiB | 15 Q