3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __destruct() { echo "Called Destruct!!\n"; var_dump($this); } } $a='a:2:{s:4:"cccc";O:3:"foo":3:{s:1:"x";s:1:"y";s:123:"name";s:8:"filename";s:13:"/tmp/evil.php";};i:1;s:4:"bbbb";}'; $b= var_dump(unserialize($a));
Output for git.master_jit, git.master, rfc.property-hooks
Deprecated: Creation of dynamic property Foo::$x is deprecated in /in/Ni2Sd on line 4 Warning: unserialize(): Error at offset 47 of 112 bytes in /in/Ni2Sd on line 4 Called Destruct!! object(Foo)#1 (1) { ["x"]=> string(1) "y" } bool(false)

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:
108.73 ms | 406 KiB | 5 Q