3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'O:12:"phpinfo();/*":0:{}'; var_export(unserialize($a)); //eval('$b = ' . var_export(unserialize($a), true) . ';');
based on XbE3u
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5, 5.1.1 - 7.1.0
Notice: unserialize(): Error at offset 13 of 24 bytes in /in/8RmnO on line 4 false
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/8RmnO on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3
class __PHP_Incomplete_Class { public $__PHP_Incomplete_Class_Name = 'phpinfo();/*'; }
Output for 4.3.0 - 4.3.10
class __PHP_Incomplete_Class { var $__PHP_Incomplete_Class_Name = 'phpinfo();/*'; }