3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(range(0,9) as $n){ echo "$n -> ",(10**$n-1)," ",(10**$n-1)/9," ",(10**$n-1)/9*$n,"\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 25
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 25
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/GIjfG
function name:  (null)
number of ops:  27
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 9
          3        DO_ICALL                                         $1      
          4      > FE_RESET_R                                       $2      $1, ->25
          5    > > FE_FETCH_R                                               $2, !0, ->25
    3     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~3      !0, '+-%3E+'
          8        ECHO                                                     ~3
          9        POW                                              ~4      10, !0
         10        SUB                                              ~5      ~4, 1
         11        ECHO                                                     ~5
         12        ECHO                                                     '+'
         13        POW                                              ~6      10, !0
         14        SUB                                              ~7      ~6, 1
         15        DIV                                              ~8      ~7, 9
         16        ECHO                                                     ~8
         17        ECHO                                                     '+'
         18        POW                                              ~9      10, !0
         19        SUB                                              ~10     ~9, 1
         20        DIV                                              ~11     ~10, 9
         21        MUL                                              ~12     !0, ~11
         22        ECHO                                                     ~12
         23        ECHO                                                     '%0A'
    2    24      > JMP                                                      ->5
         25    >   FE_FREE                                                  $2
    4    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.99 ms | 1005 KiB | 14 Q