3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10(ceil(log10($i % 10 + 1))) * 20 + 1); }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 20
Branch analysis from position: 20
Jump found. Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
Jump found. Position 1 = -2
Branch analysis from position: 2
Jump found. Position 1 = 22, Position 2 = 2
Branch analysis from position: 22
Branch analysis from position: 2
filename:       /in/ZXMGc
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 0
         1      > JMP                                                      ->20
   4     2    >   INIT_FCALL                                               'var_dump'
         3        INIT_FCALL                                               'log10'
         4        INIT_FCALL                                               'ceil'
         5        INIT_FCALL                                               'log10'
         6        MOD                                              ~2      !0, 10
         7        ADD                                              ~3      ~2, 1
         8        SEND_VAL                                                 ~3
         9        DO_ICALL                                         $4      
        10        SEND_VAR                                                 $4
        11        DO_ICALL                                         $5      
        12        SEND_VAR                                                 $5
        13        DO_ICALL                                         $6      
        14        MUL                                              ~7      $6, 20
        15        ADD                                              ~8      ~7, 1
        16        SEND_VAL                                                 ~8
        17        DO_ICALL                                                 
   3    18        POST_INC                                         ~10     !0
        19        FREE                                                     ~10
        20    >   IS_SMALLER                                       ~11     !0, 10
        21      > JMPNZ                                                    ~11, ->2
        22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0