3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = -5; for ($j = 0, $i = 10; $j < 30; $j++) { $i---$i+++$i---$i+++$i---$i+++$i---$i+++$i---$i+++$i; echo $i . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 4
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 4
Branch analysis from position: 30
Branch analysis from position: 4
filename:       /in/g1VLd
function name:  (null)
number of ops:  31
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, 10
          3      > JMP                                                      ->28
          4    >   POST_DEC                                         ~5      !0
          5        POST_INC                                         ~6      !0
          6        SUB                                              ~7      ~5, ~6
          7        POST_DEC                                         ~8      !0
          8        ADD                                              ~9      ~7, ~8
          9        POST_INC                                         ~10     !0
         10        SUB                                              ~11     ~9, ~10
         11        POST_DEC                                         ~12     !0
         12        ADD                                              ~13     ~11, ~12
         13        POST_INC                                         ~14     !0
         14        SUB                                              ~15     ~13, ~14
         15        POST_DEC                                         ~16     !0
         16        ADD                                              ~17     ~15, ~16
         17        POST_INC                                         ~18     !0
         18        SUB                                              ~19     ~17, ~18
         19        POST_DEC                                         ~20     !0
         20        ADD                                              ~21     ~19, ~20
         21        POST_INC                                         ~22     !0
         22        SUB                                              ~23     ~21, ~22
         23        ADD                                              ~24     ~23, !0
         24        FREE                                                     ~24
         25        CONCAT                                           ~25     !0, '%0A'
         26        ECHO                                                     ~25
         27        PRE_INC                                                  !1
         28    >   IS_SMALLER                                               !1, 30
         29      > JMPNZ                                                    ~27, ->4
         30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.56 ms | 1395 KiB | 13 Q