3v4l.org

run code in 300+ PHP versions simultaneously
<?php $long_total_profit_loss = -900; $short_sell_total_profit_loss = 29000; if($long_total_profit_loss > $short_sell_total_profit_loss) { if($long_total_profit_loss > 0) { echo "long has higher in profit"; } else { // $long_total_profit_loss<0 or =0 echo "short has higher loss"; } } else { // $long_total_profit_loss < $short_sell_total_profit_loss or equal if($short_sell_total_profit_loss > 0) { echo "short has higher in profit"; } else { // $long_total_profit_loss<0 or =0 echo "long has higher loss"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 10
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
filename:       /in/PY0P2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $long_total_profit_loss, !1 = $short_sell_total_profit_loss
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, -900
    4     1        ASSIGN                                                   !1, 29000
    6     2        IS_SMALLER                                               !1, !0
          3      > JMPZ                                                     ~4, ->10
    7     4    >   IS_SMALLER                                               0, !0
          5      > JMPZ                                                     ~5, ->8
    8     6    >   ECHO                                                     'long+has+higher+in+profit'
          7      > JMP                                                      ->9
   10     8    >   ECHO                                                     'short+has+higher+loss'
          9    > > JMP                                                      ->15
   14    10    >   IS_SMALLER                                               0, !1
         11      > JMPZ                                                     ~6, ->14
   15    12    >   ECHO                                                     'short+has+higher+in+profit'
         13      > JMP                                                      ->15
   17    14    >   ECHO                                                     'long+has+higher+loss'
   19    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.67 ms | 1398 KiB | 13 Q