3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $count = 3; for($i = 0; $i< 10 ; $i++){ echo "i: ".($i % $count)."<br>"; }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 9
Branch analysis from position: 9
Jump found. Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Jump found. Position 1 = -2
Branch analysis from position: 3
Jump found. Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/pGHTq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $count, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 3
   4     1        ASSIGN                                                   !1, 0
         2      > JMP                                                      ->9
   5     3    >   MOD                                              ~4      !1, !0
         4        CONCAT                                           ~5      'i%3A+', ~4
         5        CONCAT                                           ~6      ~5, '%3Cbr%3E'
         6        ECHO                                                     ~6
   4     7        POST_INC                                         ~7      !1
         8        FREE                                                     ~7
         9    >   IS_SMALLER                                       ~8      !1, 10
        10      > JMPNZ                                                    ~8, ->3
        11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0