3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $b = true; $c = false; if($a == ($b && $c == 0)){ echo 1; }else{ echo 2; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/JspmG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, <true>
    4     2        ASSIGN                                                   !2, <false>
    5     3      > JMPZ_EX                                          ~6      !1, ->6
          4    >   IS_EQUAL                                         ~7      !2, 0
          5        BOOL                                             ~6      ~7
          6    >   IS_EQUAL                                                 !0, ~6
          7      > JMPZ                                                     ~8, ->10
    6     8    >   ECHO                                                     1
          9      > JMP                                                      ->11
    8    10    >   ECHO                                                     2
    9    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.14 ms | 1393 KiB | 13 Q