3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (null === $a || $a->a == 2) { echo 1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) 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/KpZfZ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   TYPE_CHECK                                    2  ~1      !0
          1      > JMPNZ_EX                                         ~1      ~1, ->5
          2    >   FETCH_OBJ_R                                      ~2      !0, 'a'
          3        IS_EQUAL                                         ~3      ~2, 2
          4        BOOL                                             ~1      ~3
          5    > > JMPZ                                                     ~1, ->7
    4     6    >   ECHO                                                     1
    5     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1392 KiB | 13 Q