3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1="a"; $var2="a"; $var3="c"; if (($var1 & $var2 & $var3) == "a") echo 'equal'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/TtYee
function name:  (null)
number of ops:  9
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a'
    3     1        ASSIGN                                                   !1, 'a'
    4     2        ASSIGN                                                   !2, 'c'
    6     3        BW_AND                                           ~6      !0, !1
          4        BW_AND                                           ~7      !2, ~6
          5        IS_EQUAL                                                 ~7, 'a'
          6      > JMPZ                                                     ~8, ->8
    7     7    >   ECHO                                                     'equal'
    8     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.66 ms | 1393 KiB | 13 Q