3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function __serialize() { return []; } public function __unserialize(array $data) {} } var_dump(unserialize('C:1:"C":6:{a:0:{}}'));

preferences:
44.07 ms | 402 KiB | 5 Q