3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BYBIv
function name:  (null)
number of ops:  46
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'normalizeinibytes'
          1        SEND_VAL                                                 '1'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
   26     5        INIT_FCALL                                               'normalizeinibytes'
          6        SEND_VAL                                                 '10'
          7        DO_FCALL                                      0  $2      
          8        CONCAT                                           ~3      $2, '%0A'
          9        ECHO                                                     ~3
   27    10        INIT_FCALL                                               'normalizeinibytes'
         11        SEND_VAL                                                 '1024'
         12        DO_FCALL                                      0  $4      
         13        CONCAT                                           ~5      $4, '%0A'
         14        ECHO                                                     ~5
   28    15        INIT_FCALL                                               'normalizeinibytes'
         16        SEND_VAL                                                 '1K'
         17        DO_FCALL                                      0  $6      
         18        CONCAT                                           ~7      $6, '%0A'
         19        ECHO                                                     ~7
   29    20        INIT_FCALL                                               'normalizeinibytes'
         21        SEND_VAL                                                 '1048576'
         22        DO_FCALL                                      0  $8      
         23        CONCAT                                           ~9      $8, '%0A'
         24        ECHO                                                     ~9
   30    25        INIT_FCALL                                               'normalizeinibytes'
         26        SEND_VAL                                                 '1024K'
         27        DO_FCALL                                      0  $10     
         28        CONCAT                                           ~11     $10, '%0A'
         29        ECHO                                                     ~11
   31    30        INIT_FCALL                                               'normalizeinibytes'
         31        SEND_VAL                                                 '1M'
         32        DO_FCALL                                      0  $12     
         33        CONCAT                                           ~13     $12, '%0A'
         34        ECHO                                                     ~13
   32    35        INIT_FCALL                                               'normalizeinibytes'
         36        SEND_VAL                                                 '1023M'
         37        DO_FCALL                                      0  $14     
         38        CONCAT                                           ~15     $14, '%0A'
         39        ECHO                                                     ~15
   33    40        INIT_FCALL                                               'normalizeinibytes'
         41        SEND_VAL                                                 '1G'
         42        DO_FCALL                                      0  $16     
         43        CONCAT                                           ~17     $16, '%0A'
         44        ECHO                                                     ~17
         45      > RETURN                                                   1

Function normalizeinibytes:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 36
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 42
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 36
Branch analysis from position: 32
Branch analysis from position: 36
filename:       /in/BYBIv
function name:  normalizeIniBytes
number of ops:  50
compiled vars:  !0 = $val, !1 = $last, !2 = $shift, !3 = $bytes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    6     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 -1
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    7    11        INIT_FCALL                                               'stripos'
         12        SEND_VAL                                                 'kmgtpezy'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
    8    16        TYPE_CHECK                                    4          !2
         17      > JMPZ                                                     ~10, ->20
    9    18    >   ASSIGN                                                   !3, !0
    8    19      > JMP                                                      ->30
   11    20    >   INIT_FCALL                                               'substr'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 0
         23        SEND_VAL                                                 -1
         24        DO_ICALL                                         $12     
         25        ASSIGN                                                   !3, $12
   12    26        ADD                                              ~14     !2, 1
         27        MUL                                              ~15     ~14, 10
         28        SL                                               ~16     !3, ~15
         29        ASSIGN                                                   !3, ~16
   15    30    >   IS_SMALLER_OR_EQUAL                                      1073741824, !3
         31      > JMPZ                                                     ~18, ->36
   16    32    >   SR                                               ~19     !3, 30
         33        CONCAT                                           ~20     ~19, 'GB'
         34      > RETURN                                                   ~20
   15    35*       JMP                                                      ->47
   17    36    >   IS_SMALLER_OR_EQUAL                                      1048576, !3
         37      > JMPZ                                                     ~21, ->42
   18    38    >   SR                                               ~22     !3, 20
         39        CONCAT                                           ~23     ~22, 'MB'
         40      > RETURN                                                   ~23
   17    41*       JMP                                                      ->47
   19    42    >   IS_SMALLER_OR_EQUAL                                      1024, !3
         43      > JMPZ                                                     ~24, ->47
   20    44    >   SR                                               ~25     !3, 10
         45        CONCAT                                           ~26     ~25, 'KB'
         46      > RETURN                                                   ~26
   22    47    >   CONCAT                                           ~27     !3, 'B'
         48      > RETURN                                                   ~27
   23    49*     > RETURN                                                   null

End of function normalizeinibytes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
285.72 ms | 980 KiB | 25 Q