3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entity { private $a; private $b; private $c; private $d; public $e; public function __construct($a = 1, $b = 2, $c = 3) { } } echo serialize(new Entity()); echo PHP_EOL; $createInstance = ':O:1:"Entity":{}'; $obj = unserialize($createInstance); var_dump($obj);
Output for git.master, git.master_jit
O:6:"Entity":5:{s:9:"Entitya";N;s:9:"Entityb";N;s:9:"Entityc";N;s:9:"Entityd";N;s:1:"e";N;} Notice: unserialize(): Error at offset 0 of 16 bytes in /in/CmOBq on line 22 bool(false)
Output for rfc.property-hooks
O:6:"Entity":5:{s:9:"Entitya";N;s:9:"Entityb";N;s:9:"Entityc";N;s:9:"Entityd";N;s:1:"e";N;} Warning: unserialize(): Error at offset 0 of 16 bytes in /in/CmOBq on line 22 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:
69.08 ms | 401 KiB | 8 Q