3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.04 ms | 1394 KiB | 15 Q