3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1;$b=2; if($y=$a>$b||die('Not Greater'))echo'Is Greater'; if($y>0||$y=$a)$y=$b; echo 'output:'.$y;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/sdiVj
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 2
    3     2        IS_SMALLER                                       ~5      !1, !0
          3      > JMPNZ_EX                                         ~5      ~5, ->6
          4    > > EXIT                                                     'Not+Greater'
          5*       BOOL                                             ~5      <true>
          6    >   ASSIGN                                           ~6      !2, ~5
          7      > JMPZ                                                     ~6, ->9
          8    >   ECHO                                                     'Is+Greater'
    4     9    >   IS_SMALLER                                       ~7      0, !2
         10      > JMPNZ_EX                                         ~7      ~7, ->13
         11    >   ASSIGN                                           ~8      !2, !0
         12        BOOL                                             ~7      ~8
         13    > > JMPZ                                                     ~7, ->15
         14    >   ASSIGN                                                   !2, !1
    5    15    >   CONCAT                                           ~10     'output%3A', !2
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.02 ms | 1389 KiB | 14 Q