3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.79 ms | 1400 KiB | 15 Q