3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dv($r){$s=1;for($m=0;$r!=0;$r/=10)$s=($s+$r%10*(9-$m++%6))%11; return chr($s?$s+47:75);} echo dv(76017114);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8aM5W
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'dv'
          1        SEND_VAL                                                 76017114
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function dv:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
Branch analysis from position: 4
filename:       /in/8aM5W
function name:  dv
number of ops:  25
compiled vars:  !0 = $r, !1 = $s, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        ASSIGN                                                   !1, 1
          2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->13
          4    >   MOD                                              ~5      !0, 10
          5        POST_INC                                         ~6      !2
          6        MOD                                              ~7      ~6, 6
          7        SUB                                              ~8      9, ~7
          8        MUL                                              ~9      ~5, ~8
          9        ADD                                              ~10     !1, ~9
         10        MOD                                              ~11     ~10, 11
         11        ASSIGN                                                   !1, ~11
         12        ASSIGN_OP                                     4          !0, 10
         13    >   IS_NOT_EQUAL                                             !0, 0
         14      > JMPNZ                                                    ~14, ->4
    4    15    >   INIT_FCALL                                               'chr'
         16      > JMPZ                                                     !1, ->20
         17    >   ADD                                              ~15     !1, 47
         18        QM_ASSIGN                                        ~16     ~15
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~16     75
         21    >   SEND_VAL                                                 ~16
         22        DO_ICALL                                         $17     
         23      > RETURN                                                   $17
         24*     > RETURN                                                   null

End of function dv

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.44 ms | 1403 KiB | 16 Q