3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = -5; while ($i---$i+++$i---$i+++$i---$i+++$i---$i+++$i---$i+++$i --> 0) { echo "$i\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 2
Branch analysis from position: 28
Branch analysis from position: 2
filename:       /in/4bXoe
function name:  (null)
number of ops:  29
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, -5
    5     1      > JMP                                                      ->5
    6     2    >   NOP                                                      
          3        FAST_CONCAT                                      ~2      !0, '%0A'
          4        ECHO                                                     ~2
    5     5    >   POST_DEC                                         ~3      !0
          6        POST_INC                                         ~4      !0
          7        SUB                                              ~5      ~3, ~4
          8        POST_DEC                                         ~6      !0
          9        ADD                                              ~7      ~5, ~6
         10        POST_INC                                         ~8      !0
         11        SUB                                              ~9      ~7, ~8
         12        POST_DEC                                         ~10     !0
         13        ADD                                              ~11     ~9, ~10
         14        POST_INC                                         ~12     !0
         15        SUB                                              ~13     ~11, ~12
         16        POST_DEC                                         ~14     !0
         17        ADD                                              ~15     ~13, ~14
         18        POST_INC                                         ~16     !0
         19        SUB                                              ~17     ~15, ~16
         20        POST_DEC                                         ~18     !0
         21        ADD                                              ~19     ~17, ~18
         22        POST_INC                                         ~20     !0
         23        SUB                                              ~21     ~19, ~20
         24        POST_DEC                                         ~22     !0
         25        ADD                                              ~23     ~21, ~22
         26        IS_SMALLER                                               0, ~23
         27      > JMPNZ                                                    ~24, ->2
    7    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.28 ms | 1395 KiB | 13 Q