3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Vas{ private $auto; public function __call($met, $ar) { echo 'no such func called '. $met .PHP_EOL; echo 'argumentiruj ' . implode(', ', $ar); } public function aa($a) { $this->auto = $a; echo $a . PHP_EOL; } public function __get($property) { if (property_exists($this, $property)) { return $this->$property; } } public function __set($property, $value) { if (property_exists($this, $property)) { $this->$property = $value; return $this; } } } $ob = new Vas(); $ob->test(); $ob->aa('sss'); $res = $ob->auto; echo $res;

preferences:
50.21 ms | 402 KiB | 5 Q