3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myvar = 'a:6:{s:6:"J_ID.1";s:11:"02003050020";s:9:"J_Score.1";s:0:"";s:10:"J_Status.1";s:1:"I";s:6:"J_ID.2";s:11:"02003050111";s:9:"J_Score.2";s:0:"";s:10:"J_Status.2";s:1:"N";}'; $dateFormat = 'Y-m-d (D), H:i:s'; $myTime = 1450463036; echo date_create($myTime); echo "\n\n" . print_r(unserialize($myvar),true) ;
based on lbS3k
Output for 7.1.0 - 7.2.0
Recoverable fatal error: Object of class DateTime could not be converted to string in /in/AlE29 on line 8
Process exited with code 255.
Output for 5.3.21 - 7.0.20
Catchable fatal error: Object of class DateTime could not be converted to string in /in/AlE29 on line 8
Process exited with code 255.