pr7 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of pr7.php

  1. <?php
  2.  
  3. $creditSum = 39999; /*стоимость планшета*/
  4. $payout = 5000; /*сколько может плаить в месяц*/
  5.  
  6. $homoCreditTotal = ($creditSum * 1.04) + 500;
  7. $softbankTotal = ($creditSum * 1.03) + 1000;
  8. $strawberryBankTotal = ($creditSum * 1.02) + 7777;
  9.  
  10. echo "homoCredit: {$homoCreditTotal} руб. \n";
  11. echo "softbank: {$softbankTotal} руб. \n";
  12. echo "strawberryBank: {$strawberryBankTotal} руб. \n";
File Description
  • pr7
  • PHP Code
  • 03 Feb-2023
  • 437 Bytes
You can Share it: