3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 03; $b = 11; $c = 2014; function numerek($a, $b, $c){ $s = 0; $s = $a + $b + $c; $kod = md5($s); $kod = sha1($kod); $s = 0; for ($i=0;$i<strlen($kod);$i++){ if ($i%2==0) {$kod[$i]= ord($kod[$i]);} else {$kod[$i] = ord($kod[$i]*$a+1);} $s = $s + $kod[$i] ; } $s = $s * $a; while ($s>32) { $s = $s - 32; } return $s; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8o4T0
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3
    3     1        ASSIGN                                                   !1, 11
    4     2        ASSIGN                                                   !2, 2014
   24     3      > RETURN                                                   1

Function numerek:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 18
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 46
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 46
Branch analysis from position: 50
Branch analysis from position: 46
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 18
Branch analysis from position: 43
Branch analysis from position: 18
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 18
Branch analysis from position: 43
Branch analysis from position: 18
filename:       /in/8o4T0
function name:  numerek
number of ops:  52
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $s, !4 = $kod, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        ASSIGN                                                   !3, 0
    8     4        ADD                                              ~7      !0, !1
          5        ADD                                              ~8      ~7, !2
          6        ASSIGN                                                   !3, ~8
    9     7        INIT_FCALL                                               'md5'
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !4, $10
   10    11        INIT_FCALL                                               'sha1'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !4, $12
   11    15        ASSIGN                                                   !3, 0
   12    16        ASSIGN                                                   !5, 0
         17      > JMP                                                      ->40
   13    18    >   MOD                                              ~16     !5, 2
         19        IS_EQUAL                                                 ~16, 0
         20      > JMPZ                                                     ~17, ->28
         21    >   INIT_FCALL                                               'ord'
         22        FETCH_DIM_R                                      ~19     !4, !5
         23        SEND_VAL                                                 ~19
         24        DO_ICALL                                         $20     
         25        ASSIGN_DIM                                               !4, !5
         26        OP_DATA                                                  $20
         27      > JMP                                                      ->36
   15    28    >   INIT_FCALL                                               'ord'
         29        FETCH_DIM_R                                      ~22     !4, !5
         30        MUL                                              ~23     !0, ~22
         31        ADD                                              ~24     ~23, 1
         32        SEND_VAL                                                 ~24
         33        DO_ICALL                                         $25     
         34        ASSIGN_DIM                                               !4, !5
         35        OP_DATA                                                  $25
   16    36    >   FETCH_DIM_R                                      ~26     !4, !5
         37        ADD                                              ~27     !3, ~26
         38        ASSIGN                                                   !3, ~27
   12    39        PRE_INC                                                  !5
         40    >   STRLEN                                           ~30     !4
         41        IS_SMALLER                                               !5, ~30
         42      > JMPNZ                                                    ~31, ->18
   18    43    >   MUL                                              ~32     !3, !0
         44        ASSIGN                                                   !3, ~32
   19    45      > JMP                                                      ->48
   21    46    >   SUB                                              ~34     !3, 32
         47        ASSIGN                                                   !3, ~34
   19    48    >   IS_SMALLER                                               32, !3
         49      > JMPNZ                                                    ~36, ->46
   23    50    > > RETURN                                                   !3
   24    51*     > RETURN                                                   null

End of function numerek

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.79 ms | 1400 KiB | 19 Q