3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=4;$b=2; $result; if($y=$a>$b||$result='false')$result='true'; if($y>0||$y=$a)$y=$b; echo 'result:'.$result."\n"; 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
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
Branch analysis from position: 6
filename:       /in/OJcVn
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $result, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 4
          1        ASSIGN                                                   !1, 2
    5     2        IS_SMALLER                                       ~6      !1, !0
          3      > JMPNZ_EX                                         ~6      ~6, ->6
          4    >   ASSIGN                                           ~7      !2, 'false'
          5        BOOL                                             ~6      ~7
          6    >   ASSIGN                                           ~8      !3, ~6
          7      > JMPZ                                                     ~8, ->9
          8    >   ASSIGN                                                   !2, 'true'
    6     9    >   IS_SMALLER                                       ~10     0, !3
         10      > JMPNZ_EX                                         ~10     ~10, ->13
         11    >   ASSIGN                                           ~11     !3, !0
         12        BOOL                                             ~10     ~11
         13    > > JMPZ                                                     ~10, ->15
         14    >   ASSIGN                                                   !3, !1
    8    15    >   CONCAT                                           ~13     'result%3A', !2
         16        CONCAT                                           ~14     ~13, '%0A'
         17        ECHO                                                     ~14
    9    18        CONCAT                                           ~15     'output%3A', !3
         19        ECHO                                                     ~15
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.42 ms | 1394 KiB | 13 Q