3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 0; start: echo "start"; for (;;) { if ($i++ < 2) { goto start; } } echo "done";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 7
Branch analysis from position: 7
Jump found. Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Jump found. Position 1 = -2
Branch analysis from position: 3
Jump found. Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
Jump found. Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 7
filename:       /in/JGiZO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 0
   5     1    >   ECHO                                                     'start'
   6     2      > JMP                                                      ->7
   7     3    >   POST_INC                                         ~2      !0
         4        IS_SMALLER                                       ~3      ~2, 2
         5      > JMPZ                                                     ~3, ->7
   8     6    > > JMP                                                      ->1
         7    > > JMPNZ                                                    <true>, ->3
  12     8    >   ECHO                                                     'done'
         9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0