3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 0; while ($i < 10) { var_dump((bool) ++$i % 100); }
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Jump found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
Jump found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/t4d2a
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 0
   3     1      > JMP                                                      ->8
   4     2    >   INIT_FCALL                                               'var_dump'
         3        PRE_INC                                          $2      !0
         4        CAST                                         13  ~3      $2
         5        MOD                                              ~4      ~3, 100
         6        SEND_VAL                                                 ~4
         7        DO_ICALL                                                 
   3     8    >   IS_SMALLER                                       ~6      !0, 10
         9      > JMPNZ                                                    ~6, ->2
   5    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0