3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = str_split('250076640'); $dC = 1; for ($i=1; $i<=8; $i++) { $dC += ($a[$i-1])*(10-$i); } echo "\n $dC"; $dC = $a[0] * 9 + $a[1] * 8 + $a[2] * 7 + $a[3] * 6 + $a[4] * 5 + $a[5] * 4 + $a[6] * 3 + $a[7] * 2; echo "\n $dC";
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 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/h4qtg
function name:  (null)
number of ops:  46
compiled vars:  !0 = $a, !1 = $dC, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 '250076640'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ASSIGN                                                   !1, 1
    4     5        ASSIGN                                                   !2, 1
          6      > JMP                                                      ->13
    5     7    >   SUB                                              ~7      !2, 1
          8        FETCH_DIM_R                                      ~8      !0, ~7
          9        SUB                                              ~9      10, !2
         10        MUL                                              ~10     ~8, ~9
         11        ASSIGN_OP                                     1          !1, ~10
    4    12        PRE_INC                                                  !2
         13    >   IS_SMALLER_OR_EQUAL                                      !2, 8
         14      > JMPNZ                                                    ~13, ->7
    7    15    >   NOP                                                      
         16        FAST_CONCAT                                      ~14     '%0A+', !1
         17        ECHO                                                     ~14
    9    18        FETCH_DIM_R                                      ~15     !0, 0
         19        MUL                                              ~16     ~15, 9
         20        FETCH_DIM_R                                      ~17     !0, 1
         21        MUL                                              ~18     ~17, 8
         22        ADD                                              ~19     ~16, ~18
         23        FETCH_DIM_R                                      ~20     !0, 2
         24        MUL                                              ~21     ~20, 7
         25        ADD                                              ~22     ~19, ~21
         26        FETCH_DIM_R                                      ~23     !0, 3
         27        MUL                                              ~24     ~23, 6
         28        ADD                                              ~25     ~22, ~24
         29        FETCH_DIM_R                                      ~26     !0, 4
         30        MUL                                              ~27     ~26, 5
         31        ADD                                              ~28     ~25, ~27
         32        FETCH_DIM_R                                      ~29     !0, 5
         33        MUL                                              ~30     ~29, 4
         34        ADD                                              ~31     ~28, ~30
         35        FETCH_DIM_R                                      ~32     !0, 6
         36        MUL                                              ~33     ~32, 3
         37        ADD                                              ~34     ~31, ~33
         38        FETCH_DIM_R                                      ~35     !0, 7
         39        MUL                                              ~36     ~35, 2
         40        ADD                                              ~37     ~34, ~36
         41        ASSIGN                                                   !1, ~37
   10    42        NOP                                                      
         43        FAST_CONCAT                                      ~39     '%0A+', !1
         44        ECHO                                                     ~39
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.45 ms | 1400 KiB | 15 Q