testsdafsadfasdfasd - 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.
Result of php executing
Full code of testsdafsadfasdfasd.php
- <?php
- function calc1 ($inkomen) {
- if($inkomen <= 25000)
- $belasting = $inkomen * 0.33;
- else if ($inkomen <= 50000)
- $belasting = 1000 + ($inkomen - 10000) * 0.45;
- return $belasting;
- }
- function calc2 ($inkomen) {
- if($inkomen <= 25000)
- $belasting = $inkomen * 0.33;
- else if($inkomen > 25000 && $inkomen <= 50000)
- $belasting = 1000 + ($inkomen - 10000) * 0.45;
- return $belasting;
- }
- echo "start\r\n";
- for ($i=0; $i<55000; $i++) {
- echo calc1($i)!==calc2($i) ? "Berekening komt niet overeen voor het cijfer ".$i."\r\n" : '';
- }
- echo "end\r\n";
File Description
- testsdafsadfasdfasd
- PHP Code
- 04 Feb-2020
- 589 Bytes
You can Share it:
Latest PHP Pastes