3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump('$b = '.var_export(unserialize('O:8:"DateTime":1:{s:15:"\'=>phpinfo(),//";s:1:"1";}'),true).';');
based on J0GFU
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught Error: Invalid serialization data for DateTime object in /in/lX6qj:3 Stack trace: #0 [internal function]: DateTime->__wakeup() #1 /in/lX6qj(3): unserialize('O:8:"DateTime":...') #2 {main} thrown in /in/lX6qj on line 3
Process exited with code 255.
Output for 5.3.24 - 5.3.29, 5.4.14 - 7.0.20
Fatal error: Invalid serialization data for DateTime object in /in/lX6qj on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.13
string(67) "$b = DateTime::__set_state(array( '\'=>phpinfo(),//' => '1', ));"