3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ltActive = 1; $rtActive = 1; if($ltActive && $rtActive){ $class = 'class when both sidebars are active'; }elseif(!$ltActive && !$rtActive){ $class = 'class when both sidebars are inactive'; }else{ $class = 'class when only one of the sidebars is active (either one)'; } print $class;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/1A0JQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $ltActive, !1 = $rtActive, !2 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 1
    6     2      > JMPZ_EX                                          ~5      !0, ->4
          3    >   BOOL                                             ~5      !1
          4    > > JMPZ                                                     ~5, ->7
    7     5    >   ASSIGN                                                   !2, 'class+when+both+sidebars+are+active'
          6      > JMP                                                      ->15
    9     7    >   BOOL_NOT                                         ~7      !0
          8      > JMPZ_EX                                          ~7      ~7, ->11
          9    >   BOOL_NOT                                         ~8      !1
         10        BOOL                                             ~7      ~8
         11    > > JMPZ                                                     ~7, ->14
   10    12    >   ASSIGN                                                   !2, 'class+when+both+sidebars+are+inactive'
         13      > JMP                                                      ->15
   13    14    >   ASSIGN                                                   !2, 'class+when+only+one+of+the+sidebars+is+active+%28either+one%29'
   16    15    >   ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.58 ms | 1385 KiB | 13 Q