3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { // construct and destruct can't have return type public function __construct() {} public function __destruct() {} // below can have return type public function __invoke(): string { return ''; } public function __unset($a): void {} public function __wakeup(): void {} public function __clone(): void {} public function __toString(): string { return ''; } public function __isset($a): bool { return true; } public function __sleep(): array { return ''; } public static function __set_state($a): object { return ''; } }
Output for git.master_jit, git.master

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:
34.87 ms | 405 KiB | 5 Q