3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Caller { private $x = array('a', 'b', 'c'); public function __call($method, $args) { print "Method $method called:\n"; var_dump($args); return $this->x; } } $foo = new Caller(); $a = $foo->test(1, 2, 3); var_dump($a); ?>

preferences:
40.75 ms | 402 KiB | 5 Q