php-madness - 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 php-madness.php
- <?php
- class Base
- {
- public function pop() {
- echo print_r( $this, true ) . PHP_EOL;
- $this->bang();
- }
- }
- class Sub extends Base {
- public function bang() {
- echo print_r( $this, true ) . PHP_EOL;
- echo "This shouldn't work!";
- }
- }
- $obj = new Sub();
- $obj->pop();
File Description
- php-madness
- PHP Code
- 15 Dec-2018
- 307 Bytes
You can Share it:
Latest PHP Pastes