3v4l.org

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

Generated using Vulcan Logic Dumper, using php 7.1.0