3v4l.org

run code in 300+ PHP versions simultaneously
<?php class integer { private $value; public function __construct(int $value) { $this->value = $value; } public function __invoke(int ...$value) { var_dump($value); } } $testi = new integer(1); $testi('dsa');

preferences:
106.34 ms | 402 KiB | 5 Q