3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; while($x<10) $x++; echo $x+5;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 2
Branch analysis from position: 5
Branch analysis from position: 2
filename:       /in/c5jmr
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1      > JMP                                                      ->3
    4     2    >   PRE_INC                                                  !0
    3     3    >   IS_SMALLER                                               !0, 10
          4      > JMPNZ                                                    ~3, ->2
    5     5    >   ADD                                              ~4      !0, 5
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.73 ms | 1393 KiB | 13 Q