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.



Your result can be seen below.

Result of php executing





Full code of testqwer1234.php

  1. <?php
  2. abstract class Bank {
  3.     public function isNeed()
  4.     {
  5.         return false;
  6.     }
  7.     public function checkAutoCancel()
  8.     {
  9.         return static::isNeed();
  10.     }
  11. }
  12.  
  13. class Mts extends Bank {
  14.     public function isNeed()
  15.     {
  16.         return true;
  17.     }
  18. }
  19.  
  20. class Score {
  21.     public function send()
  22.     {
  23.         $mts = new Mts();
  24.         return $mts->checkAutoCancel();
  25.     }
  26. }
  27.  
  28. var_dump((new Score)->send());
  29.  
  30.  
  31.  
File Description
  • testqwer1234
  • PHP Code
  • 25 Jan-2023
  • 422 Bytes
You can Share it: