3v4l.org

run code in 300+ PHP versions simultaneously
<?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 "\n" . $myTime->format("%H:%I:%S"); echo "\n" . date($dateFormat, $myTime); echo "\n\n" . print_r(unserialize($myvar),true) ;
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to a member function format() on string in /in/qvr3n:8 Stack trace: #0 {main} thrown in /in/qvr3n 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 string in /in/qvr3n on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.37
Fatal error: Call to a member function format() on a non-object in /in/qvr3n on line 8
Process exited with code 255.

preferences:
198.64 ms | 401 KiB | 220 Q