3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (($foo = array('bar')) && 'bar' === $foo[0]) { echo "bar\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
Branch analysis from position: 5
filename:       /in/S73H2
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~1      !0, <array>
          1      > JMPZ_EX                                          ~1      ~1, ->5
          2    >   FETCH_DIM_R                                      ~2      !0, 0
          3        IS_IDENTICAL                                     ~3      ~2, 'bar'
          4        BOOL                                             ~1      ~3
          5    > > JMPZ                                                     ~1, ->7
    4     6    >   ECHO                                                     'bar%0A'
    5     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.21 ms | 1397 KiB | 13 Q