fork download
  1. <?php
  2. $sum = htmlspecialchars($_POST["firstName"]) + htmlspecialchars($_POST["secondName"]);
  3. echo 'Сумма равна ' . $sum . '.';
  4. ?>
Success #stdin #stdout #stderr 0.02s 23812KB
stdin
Standard input is empty
stdout
Сумма равна 0.
stderr
PHP Notice:  Undefined index: firstName in /home/2Hp4OK/prog.php on line 2
PHP Notice:  Undefined index: secondName in /home/2Hp4OK/prog.php on line 2
PHP Warning:  A non-numeric value encountered in /home/2Hp4OK/prog.php on line 2
PHP Warning:  A non-numeric value encountered in /home/2Hp4OK/prog.php on line 2