3v4l.org

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

Generated using Vulcan Logic Dumper, using php 7.2.0