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 = date_create('1450463036'); echo "\n" . $myTime->format("%H:%I:%S"); echo "\n" . date($dateFormat, $myTime); echo "\n\n" . print_r(unserialize($myvar),true) ;
based on LIo3s
Output for 7.0.0 - 7.2.0
%14:%0:%st Warning: date() expects parameter 2 to be integer, object given in /in/LJ1iG on line 9 Array ( [J_ID.1] => 02003050020 [J_Score.1] => [J_Status.1] => I [J_ID.2] => 02003050111 [J_Score.2] => [J_Status.2] => N )
Output for 5.5.0 - 5.6.28
%14:%0:%st Warning: date() expects parameter 2 to be long, object given in /in/LJ1iG on line 9 Array ( [J_ID.1] => 02003050020 [J_Score.1] => [J_Status.1] => I [J_ID.2] => 02003050111 [J_Score.2] => [J_Status.2] => N )