3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i < 1000; ++$i) { $s = $i % 3; echo "ServerID=$s\n"; }
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 = 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 = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/daurA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->9
    4     2    >   MOD                                              ~3      !0, 3
          3        ASSIGN                                                   !1, ~3
    5     4        ROPE_INIT                                     3  ~6      'ServerID%3D'
          5        ROPE_ADD                                      1  ~6      ~6, !1
          6        ROPE_END                                      2  ~5      ~6, '%0A'
          7        ECHO                                                     ~5
    3     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 1000
         10      > JMPNZ                                                    ~9, ->2
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.62 ms | 1083 KiB | 13 Q