3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $class = 'Generator'; var_dump(unserialize(sprintf( 'O:%d:"%s":0:{}', strlen($class), $class )));
Output for 7.0.0 - 7.1.0
Warning: Erroneous data format for unserializing 'Generator' in /in/EboRt on line 6 Notice: unserialize(): Error at offset 19 of 20 bytes in /in/EboRt on line 6 bool(false)
Output for 5.5.24 - 5.6.28
Warning: Erroneous data format for unserializing 'Generator' in /in/EboRt on line 8 Notice: unserialize(): Error at offset 19 of 20 bytes in /in/EboRt on line 8 bool(false)
Output for 5.0.0 - 5.4.45
object(__PHP_Incomplete_Class)#1 (1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "Generator" }
Output for 4.3.0 - 4.4.9
object(__PHP_Incomplete_Class)(1) { ["__PHP_Incomplete_Class_Name"]=> string(9) "generator" }