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 strtotime($myTime)->format("%H:%I:%S"); echo "\n\n" . print_r(unserialize($myvar),true) ;
based on Zpck6
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to a member function format() on integer in /in/5uKeh:8 Stack trace: #0 {main} thrown in /in/5uKeh on line 8
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Fatal error: Call to a member function format() on integer in /in/5uKeh on line 8
Process exited with code 255.
Output for 5.3.21 - 5.5.35
Fatal error: Call to a member function format() on a non-object in /in/5uKeh on line 8
Process exited with code 255.