3v4l.org

run code in 500+ PHP versions simultaneously
<?php $rate = 30; $total_amt = 200; $start_date = "19-08-2022"; $cost = $rate * 7; if($cost <= $total_amt){ echo "Remainder:".$total_amt - $cost; } else { echo "you need to pay extra:".$cost - $total_amt; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EP8Et
function name:  (null)
number of ops:  15
compiled vars:  !0 = $rate, !1 = $total_amt, !2 = $start_date, !3 = $cost
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 30
    3     1        ASSIGN                                                       !1, 200
    4     2        ASSIGN                                                       !2, '19-08-2022'
    6     3        MUL                                                  ~7      !0, 7
          4        ASSIGN                                                       !3, ~7
    7     5        IS_SMALLER_OR_EQUAL                                          !3, !1
          6      > JMPZ                                                         ~9, ->11
    8     7    >   SUB                                                  ~10     !1, !3
          8        CONCAT                                               ~11     'Remainder%3A', ~10
          9        ECHO                                                         ~11
    7    10      > JMP                                                          ->14
   10    11    >   SUB                                                  ~12     !3, !1
         12        CONCAT                                               ~13     'you+need+to+pay+extra%3A', ~12
         13        ECHO                                                         ~13
   11    14    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.85 ms | 1886 KiB | 13 Q