3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cond1 = 0; $cond2 = 0; $cond3 = 0; //If $cond2 is failed if (++$cond1 && $cond2 && ++$cond3) { echo "This shouldn't be printed"; } echo $cond1 . "\n"; echo $cond2 . "\n"; echo $cond3 . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/u9P4O
function name:  (null)
number of ops:  18
compiled vars:  !0 = $cond1, !1 = $cond2, !2 = $cond3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, 0
    8     3        PRE_INC                                          ~6      !0
          4      > JMPZ_EX                                          ~6      ~6, ->6
          5    >   BOOL                                             ~6      !1
          6    > > JMPZ_EX                                          ~6      ~6, ->9
          7    >   PRE_INC                                          ~7      !2
          8        BOOL                                             ~6      ~7
          9    > > JMPZ                                                     ~6, ->11
    9    10    >   ECHO                                                     'This+shouldn%27t+be+printed'
   12    11    >   CONCAT                                           ~8      !0, '%0A'
         12        ECHO                                                     ~8
   13    13        CONCAT                                           ~9      !1, '%0A'
         14        ECHO                                                     ~9
   14    15        CONCAT                                           ~10     !2, '%0A'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.99 ms | 1007 KiB | 13 Q