3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MinimumNumber{ public function parseRange(array $range){ $result; foreach($range as $number){ if(!isset($number)){ $result = $number; } if($result < $number){ $result = $number; } } return $result; } } $rangeArray = [20, 10, 30]; $getMinimumNumber = new MinimumNumber(); echo $getMinimumNumber->parseRange($rangeArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NiuoS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $rangeArray, !1 = $getMinimumNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   ASSIGN                                                   !0, <array>
   27     1        NEW                                              $3      'MinimumNumber'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   28     4        INIT_METHOD_CALL                                         !1, 'parseRange'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $6      
          7        ECHO                                                     $6
          8      > RETURN                                                   1

Class MinimumNumber:
Function parserange:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
Branch analysis from position: 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/NiuoS
function name:  parseRange
number of ops:  14
compiled vars:  !0 = $range, !1 = $result, !2 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    9     1      > FE_RESET_R                                       $3      !0, ->11
          2    > > FE_FETCH_R                                               $3, !2, ->11
   11     3    >   ISSET_ISEMPTY_CV                                 ~4      !2
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->7
   13     6    >   ASSIGN                                                   !1, !2
   16     7    >   IS_SMALLER                                               !1, !2
          8      > JMPZ                                                     ~7, ->10
   18     9    >   ASSIGN                                                   !1, !2
    9    10    > > JMP                                                      ->2
         11    >   FE_FREE                                                  $3
   22    12      > RETURN                                                   !1
   23    13*     > RETURN                                                   null

End of function parserange

End of class MinimumNumber.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.96 ms | 1395 KiB | 13 Q