- unserialize: documentation ( source)
- var_export: documentation ( source)
- serialize: documentation ( source)
<?php
class C {
static function __callStatic(string $f, array $args) {
var_export(unserialize($f) + ['args' => $args]);
}
}
['C', serialize(['service' => 'xyz', 'method' => 'foo'])](5);