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) { break; 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 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
filename:       /in/5FTqj
function name:  (null)
number of ops:  12
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                                                      ->10
   10     4    >   ECHO                                                     'label2%0A'
   11     5      > JMP                                                      ->8
   12     6    > > JMP                                                      ->10
   13     7*       JMP                                                      ->2
   11     8    >   IS_EQUAL                                                 !0, 1
          9      > JMPNZ                                                    ~2, ->6
   17    10    >   ECHO                                                     'label3%0A'
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.54 ms | 1384 KiB | 13 Q