<?php
class C {
static function __callStatic(string $f, array $args) {
var_export(unserialize($f) + ['args' => $args]);
}
}
['C', serialize(['service' => 'xyz', 'method' => 'foo'])](5);
- 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
- array (
'service' => 'xyz',
'method' => 'foo',
'args' =>
array (
0 => 5,
),
)
preferences:
47.7 ms | 406 KiB | 5 Q