3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("America/Chicago"); $num = $_POST['num']; if ((is_numeric($num)) && ($num >= "100.00")) { $percentage = 3; $num += $num*($percentage/100); $num = round($num, 1); // 4 $num = sprintf('%0.2f', $num); $link = '<a href="https://www.paypal.me/DigitalMusicServices/'.$num.'"><b>Click Here To Make This Payment</b></a>"'; echo "<b>Your payment with handling fees would be: $$num</b>"; echo "<br /><br />"; echo "<b>If you're ready to make this payment, please click the link below</b><br /><br />"; echo $link; } else { ?> <h4>Please enter the amount ($xxx.xx) $100.00 Mininum</h4> <form name='payment' method='POST' action='<?php echo htmlspecialchars($_SERVER['PHP_SELF']);?>'> <input type='text' name='num' size='20'> <input type='submit' name='Submit' value='Submit'> </form> <?php } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 38
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/6RYgX
function name:  (null)
number of ops:  47
compiled vars:  !0 = $num, !1 = $percentage, !2 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FChicago'
          2        DO_ICALL                                                 
    4     3        FETCH_R                      global              ~4      '_POST'
          4        FETCH_DIM_R                                      ~5      ~4, 'num'
          5        ASSIGN                                                   !0, ~5
    6     6        INIT_FCALL                                               'is_numeric'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9      > JMPZ_EX                                          ~8      $7, ->12
         10    >   IS_SMALLER_OR_EQUAL                              ~9      '100.00', !0
         11        BOOL                                             ~8      ~9
         12    > > JMPZ                                                     ~8, ->38
    7    13    >   ASSIGN                                                   !1, 3
    8    14        DIV                                              ~11     !1, 100
         15        MUL                                              ~12     !0, ~11
         16        ASSIGN_OP                                     1          !0, ~12
    9    17        INIT_FCALL                                               'round'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !0, $14
   10    22        INIT_FCALL                                               'sprintf'
         23        SEND_VAL                                                 '%250.2f'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !0, $16
   12    27        CONCAT                                           ~18     '%3Ca+href%3D%22https%3A%2F%2Fwww.paypal.me%2FDigitalMusicServices%2F', !0
         28        CONCAT                                           ~19     ~18, '%22%3E%3Cb%3EClick+Here+To+Make+This+Payment%3C%2Fb%3E%3C%2Fa%3E%22'
         29        ASSIGN                                                   !2, ~19
   14    30        ROPE_INIT                                     3  ~22     '%3Cb%3EYour+payment+with+handling+fees+would+be%3A+%24'
         31        ROPE_ADD                                      1  ~22     ~22, !0
         32        ROPE_END                                      2  ~21     ~22, '%3C%2Fb%3E'
         33        ECHO                                                     ~21
   15    34        ECHO                                                     '%3Cbr+%2F%3E%3Cbr+%2F%3E'
   16    35        ECHO                                                     '%3Cb%3EIf+you%27re+ready+to+make+this+payment%2C+please+click+the+link+below%3C%2Fb%3E%3Cbr+%2F%3E%3Cbr+%2F%3E'
   17    36        ECHO                                                     !2
         37      > JMP                                                      ->46
   18    38    >   ECHO                                                     '+%0A%0A%3Ch4%3EPlease+enter+the+amount+%28%24xxx.xx%29+%24100.00+Mininum%3C%2Fh4%3E%0A%3Cform+name%3D%27payment%27+method%3D%27POST%27+action%3D%27'
   21    39        INIT_FCALL                                               'htmlspecialchars'
         40        FETCH_R                      global              ~24     '_SERVER'
         41        FETCH_DIM_R                                      ~25     ~24, 'PHP_SELF'
         42        SEND_VAL                                                 ~25
         43        DO_ICALL                                         $26     
         44        ECHO                                                     $26
         45        ECHO                                                     '%27%3E%0A%3Cinput+type%3D%27text%27+name%3D%27num%27+size%3D%2720%27%3E%0A%3Cinput+type%3D%27submit%27+name%3D%27Submit%27+value%3D%27Submit%27%3E%0A%3C%2Fform%3E%0A'
   25    46    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.17 ms | 1400 KiB | 23 Q