3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.44 ms | 1393 KiB | 13 Q