3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('O:3:"PDO":1:{s:3:"dsn";s:17:"sqlite:exampl.php";}'));
based on DSRI4
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught PDOException: You cannot serialize or unserialize PDO instances in /in/iBP68:2 Stack trace: #0 [internal function]: PDO->__wakeup() #1 /in/iBP68(2): unserialize('O:3:"PDO":1:{s:...') #2 {main} thrown in /in/iBP68 on line 2
Process exited with code 255.
Output for 5.1.0 - 5.6.28
Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in /in/iBP68:2 Stack trace: #0 [internal function]: PDO->__wakeup() #1 /in/iBP68(2): unserialize('O:3:"PDO":1:{s:...') #2 {main} thrown in /in/iBP68 on line 2
Process exited with code 255.
Output for 5.0.0 - 5.0.5
object(__PHP_Incomplete_Class)#1 (2) { ["__PHP_Incomplete_Class_Name"]=> string(3) "PDO" ["dsn"]=> string(17) "sqlite:exampl.php" }
Output for 4.3.0 - 4.4.9
object(__PHP_Incomplete_Class)(2) { ["__PHP_Incomplete_Class_Name"]=> string(3) "pdo" ["dsn"]=> string(17) "sqlite:exampl.php" }