3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public $prop; public function __wakeup() { echo __METHOD__ . " is running.\n"; } public function quux() { echo __METHOD__ . " is running.\n"; } } Class Bar { public $a; public function __destruct() { $this->a->quux(); } } unserialize('O:3:"Bar":1:{s:1:"a";O:3:"Foo":2:{s:4:"prop";s:3:"baz";}}');
Output for master
Warning: unserialize(): Unexpected end of serialized data in /in/aHZDT on line 24 Warning: unserialize(): Error at offset 55 of 57 bytes in /in/aHZDT on line 24 Foo::quux is running.

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:
14.23 ms | 1195 KiB | 7 Q