Test KIM - 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 Test KIM.php
- <?php
- class Figure {
- function getMessage() {
- return "this._class";
- }
- }
- class Circle extends Figure {
- }
- class Square extends Figure {
- }
- $circle = new Circle(10);
- echo($circle->getMessage()); // Output: Area of Circle is 314
- $square = new Square(5);
- echo($square->getMessage()); // Output: Area of Square is 25
- //$triangle = new Triangle(5, 4);
- //echo($square->getMessage()); // Output: Area of Triangle is 10
File Description
- Test KIM
- PHP Code
- 23 Mar-2021
- 436 Bytes
You can Share it:
Latest PHP Pastes