3v4l.org

run code in 300+ PHP versions simultaneously
<?php const TIMES = 5; $x = -1; for ($i=TIMES, $max = ~$x; $i > $max; $i--) { echo $i,"\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/4UL1n
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $i, !2 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'TIMES', 5
    3     1        ASSIGN                                                   !0, -1
    4     2        FETCH_CONSTANT                                   ~4      'TIMES'
          3        ASSIGN                                                   !1, ~4
          4        BW_NOT                                           ~6      !0
          5        ASSIGN                                                   !2, ~6
          6      > JMP                                                      ->10
    5     7    >   ECHO                                                     !1
          8        ECHO                                                     '%0A'
    4     9        PRE_DEC                                                  !1
         10    >   IS_SMALLER                                               !2, !1
         11      > JMPNZ                                                    ~9, ->7
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.72 ms | 1397 KiB | 13 Q