3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; goto label2; label: print("label\n"); goto label3; label2: print("label2\n"); while ($i == 1) { goto label; } label3: print("label3\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
filename:       /in/TloLr
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    5     1      > JMP                                                      ->4
    7     2    >   ECHO                                                     'label%0A'
    8     3      > JMP                                                      ->9
   10     4    >   ECHO                                                     'label2%0A'
   11     5      > JMP                                                      ->7
   12     6    > > JMP                                                      ->2
   11     7    >   IS_EQUAL                                                 !0, 1
          8      > JMPNZ                                                    ~2, ->6
   16     9    >   ECHO                                                     'label3%0A'
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.83 ms | 1393 KiB | 13 Q