3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $className = "SplFileInfo"; //$reflection = new ReflectionClass(); //$instance = $reflection->newInstanceWithoutConstructor(); $serializedString = sprintf( '%s:%d:"%s":0:{}', 'O', strlen($className), $className ); unserialize($serializedString);
based on m3QH4
Output for 5.4.29 - 5.6.28, 7.0.0 - 7.1.0
Warning: Erroneous data format for unserializing 'SplFileInfo' in /in/X9DZ4 on line 13 Notice: unserialize(): Error at offset 22 of 23 bytes in /in/X9DZ4 on line 13
Output for 4.3.0 - 5.4.28, hhvm-3.12.0
Output for hhvm-3.10.0

Process exited with code 153.