3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('unserialize_callback_func', 'mycallback'); function mycallback($classname) { echo $classname; } $serialized_text = 'O:8:"MyClass1":0:{}'; $result = unserialize($serialized_text); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
MyClass1 Warning: unserialize(): Function mycallback() hasn't defined the class it was called for in /in/5tH65 on line 9 object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(8) "MyClass1" }

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