3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $a; function __destruct() { $t=1337; echo(serialize($this->a)); } } class b { public $b; function __wakeup() { $this->b=null; } } $i='x:i:0;O:10:"FixedArray":2:{i:0;i:1711;i:1;O:1:"a":1:{s:1:"a";R:4;}};m:a:0:{}'; $x=unserialize('a:2:{i:0;C:11:"ArrayObject":'.strlen($i).':{'.$i.'}i:1;O:1:"b":1:{s:1:"b";R:4;}}'); $x=null; echo('doe');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught UnexpectedValueException: Error at offset 67 of 76 bytes in /in/6vTPv:16 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;O:10:"Fix...') #1 /in/6vTPv(16): unserialize('a:2:{i:0;C:11:"...') #2 {main} thrown in /in/6vTPv on line 16 O:10:"FixedArray":2:{s:1:"0";i:1711;s:1:"1";O:1:"a":1:{s:1:"a";r:1;}}
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:
46.04 ms | 401 KiB | 8 Q