3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0;$i<10;$i++) var_dump($i-log10(intval(pow(10,$i))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/hXRZl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->15
          2    >   INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'log10'
          4        INIT_FCALL                                               'pow'
          5        SEND_VAL                                                 10
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        CAST                                          4  ~3      $2
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        SUB                                              ~5      !0, $4
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
         14        PRE_INC                                                  !0
         15    >   IS_SMALLER                                               !0, 10
         16      > JMPNZ                                                    ~8, ->2
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.96 ms | 1399 KiB | 19 Q