testqwer1234 - 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 testqwer1234.php
- <?php
- abstract class Bank {
- public function isNeed()
- {
- return false;
- }
- public function checkAutoCancel()
- {
- return static::isNeed();
- }
- }
- class Mts extends Bank {
- public function isNeed()
- {
- return true;
- }
- }
- class Score {
- public function send()
- {
- $mts = new Mts();
- return $mts->checkAutoCancel();
- }
- }
- var_dump((new Score)->send());