3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter = 0; while (true) { if($counter <= 9) { $counter = $counter +1; print $counter . PHP_EOL; } else { break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
filename:       /in/7et1V
function name:  (null)
number of ops:  12
compiled vars:  !0 = $counter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1      > JMP                                                      ->10
    7     2    >   IS_SMALLER_OR_EQUAL                                      !0, 9
          3      > JMPZ                                                     ~2, ->9
    9     4    >   ADD                                              ~3      !0, 1
          5        ASSIGN                                                   !0, ~3
   10     6        CONCAT                                           ~5      !0, '%0A'
          7        ECHO                                                     ~5
          8      > JMP                                                      ->10
   14     9    > > JMP                                                      ->11
    5    10    > > JMPNZ                                                    <true>, ->2
   18    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.86 ms | 1393 KiB | 13 Q