3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oo=unserialize('O:6:"person":2:{s:4:"name";s:5:"zhang";s:3:"age";i:23;}'); var_dump($oo);var_dump($oo->age); $arr=array(8);echo $arr[8];
Output for git.master, git.master_jit, rfc.property-hooks
object(__PHP_Incomplete_Class)#1 (3) { ["__PHP_Incomplete_Class_Name"]=> string(6) "person" ["name"]=> string(5) "zhang" ["age"]=> int(23) } Warning: main(): The script tried to access a property on an incomplete object. Please ensure that the class definition "person" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /in/OSP9X on line 4 NULL Warning: Undefined array key 8 in /in/OSP9X on line 5

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:
39.77 ms | 402 KiB | 8 Q