3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on sWiL3
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1
no such func called test argumentiruj sss sss