3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1394 KiB | 13 Q