3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.91 ms | 1404 KiB | 15 Q