3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.75 ms | 1394 KiB | 13 Q