3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.34 ms | 1392 KiB | 15 Q