3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; if ($a) foreach(array(1,2,3) as $num) { echo $num; }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
Jump found. Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
Jump found. Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
Jump found. Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 6
Jump found. Position 1 = -2
Branch analysis from position: 6
Branch analysis from position: 7
filename:       /in/tGqod
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $num
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 1
   3     1      > JMPZ                                                     !0, ->7
         2    > > FE_RESET_R                                       $3      <array>, ->6
         3    > > FE_FETCH_R                                               $3, !1, ->6
   4     4    >   ECHO                                                     !1
         5      > JMP                                                      ->3
         6    >   FE_FREE                                                  $3
         7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0