3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 10; while ($i > 0 && --$i); var_dump($i);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
Branch analysis from position: 6
filename:       /in/RXNqL
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    5     1      > JMP                                                      ->2
          2    >   IS_SMALLER                                       ~2      0, !0
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   PRE_DEC                                          ~3      !0
          5        BOOL                                             ~2      ~3
          6    > > JMPNZ                                                    ~2, ->2
    7     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.23 ms | 1004 KiB | 14 Q