3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 20; $i++) { var_dump((log10($i % 20 + 1) * 30 + 1) / 2); }
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 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/aoBQf
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    4     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'log10'
          4        MOD                                              ~2      !0, 20
          5        ADD                                              ~3      ~2, 1
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        MUL                                              ~5      $4, 30
          9        ADD                                              ~6      ~5, 1
         10        DIV                                              ~7      ~6, 2
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
    3    13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 20
         15      > JMPNZ                                                    ~10, ->2
    5    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.94 ms | 1395 KiB | 17 Q