3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.95 ms | 1384 KiB | 13 Q