- Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
- C::foo(...array ( 0 => 5, )) true
<?php
class C {
static function __callStatic(string $f, array $args) {
print 'C::' . $f . '(...';
var_export($args);
print ")\n";
}
}
['C', 'foo'](5);
var_export(is_callable(['C', 'foo']));