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