3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('abcd', 'df43', 'asdfsa'); foreach ($a as $val) { if ($val == '' || $val == 0) { echo "$val"; } }
based on JMVVX
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
Jump found. Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
Jump found. Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
Jump found. Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
Jump found. Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
Branch analysis from position: 7
Branch analysis from position: 11
Jump found. Position 1 = -2
Branch analysis from position: 11
filename:       /in/HbFRM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $val
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   5     1      > FE_RESET_R                                       $3      !0, ->11
         2    > > FE_FETCH_R                                               $3, !1, ->11
   6     3    >   IS_EQUAL                                         ~4      !1, ''
         4      > JMPNZ_EX                                         ~4      ~4, ->7
         5    >   IS_EQUAL                                         ~5      !1, 0
         6        BOOL                                             ~4      ~5
         7    > > JMPZ                                                     ~4, ->10
   7     8    >   CAST                                          6  ~6      !1
         9        ECHO                                                     ~6
        10    > > JMP                                                      ->2
        11    >   FE_FREE                                                  $3
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0