3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MagicSerialization; class Ok { /** @return array<mixed> */ public function __serialize(): array { return []; } /** @param array<mixed> $data */ public function __unserialize(array $data): void { } } class WrongSignature { public function __serialize(): string { return ''; } public function __unserialize(string $data): string { return ''; } }
Output for git.master, git.master_jit
Fatal error: MagicSerialization\WrongSignature::__serialize(): Return type must be array when declared in /in/bLjLG on line 21
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
130.77 ms | 1007 KiB | 7 Q