3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t=time(); echo($t); $str='Fri, 20 Nov 2015 17:56:56 -0500'; echo($str); $date = new DateTime( $str ); echo $date->format( 'H:i:s' ); echo($date);
Output for 7.4.0
1448060573Fri, 20 Nov 2015 17:56:56 -050017:56:56 Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in /in/KfLYH:11 Stack trace: #0 {main} thrown in /in/KfLYH on line 11
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12
1448060573Fri, 20 Nov 2015 17:56:56 -050017:56:56 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/KfLYH on line 11
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
1448060573Fri, 20 Nov 2015 17:56:56 -050017:56:56 Catchable fatal error: Object of class DateTime could not be converted to string in /in/KfLYH on line 11
Process exited with code 255.

preferences:
172.62 ms | 402 KiB | 193 Q