3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $b = false; $c = false; var_dump($a || $b && $c); var_dump($a || ($b and $c));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 15
Branch analysis from position: 7
Branch analysis from position: 8
filename:       /in/breTU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <false>
    5     2        ASSIGN                                                   !2, <false>
    7     3        INIT_FCALL                                               'var_dump'
          4      > JMPNZ_EX                                         ~6      !0, ->8
          5    > > JMPZ_EX                                          ~7      !1, ->7
          6    >   BOOL                                             ~7      !2
          7    >   BOOL                                             ~6      ~7
          8    >   SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11      > JMPNZ_EX                                         ~9      !0, ->15
         12    > > JMPZ_EX                                          ~10     !1, ->14
         13    >   BOOL                                             ~10     !2
         14    >   BOOL                                             ~9      ~10
         15    >   SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.18 ms | 1395 KiB | 15 Q