fork download
  1. <?php
  2.  
  3. class Crypto {
  4. public function check() {
  5. echo __METHOD__;
  6. }
  7. }
  8.  
  9. class Check {
  10. public $crypto;
  11.  
  12. public function __construct() {
  13. $this->crypto = new Crypto;
  14. }
  15.  
  16. public function check() {
  17. $this->crypto->check();
  18. }
  19. }
  20.  
  21. (new Check)->check();
Success #stdin #stdout 0.04s 24200KB
stdin
Standard input is empty
stdout
Crypto::check