3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Test\SuperTest{ class testA { private $b = 123; public function __construct() { $a = 5; } } } $className = "Test\SuperTest\testA"; $object = unserialize( sprintf('O:%d:"%s":0:{}', strlen($className), $className) ); var_dump($object);
Output for 5.3.0 - 5.4.30
Fatal error: No code may exist outside of namespace {} in /in/qtLsp on line 15
Process exited with code 255.