3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; for ($i = 0; $i < 100000; $i++) {$a+=$i;}
based on iOQue
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Jump found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
Jump found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/JYQ1I
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 0
   4     1        ASSIGN                                                   !1, 0
         2      > JMP                                                      ->6
         3    >   ASSIGN_ADD                                    0          !0, !1
         4        POST_INC                                         ~5      !1
         5        FREE                                                     ~5
         6    >   IS_SMALLER                                       ~6      !1, 100000
         7      > JMPNZ                                                    ~6, ->3
         8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0