3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 60*60*16; $b = '12:31'; echo date("H:i",$a); echo "\n"; echo date("H:i",$b); echo "\n"; echo date("H:i",$a-$b-3600);
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
17:00 Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /in/hqnNk:7 Stack trace: #0 /in/hqnNk(7): date('H:i', '12:31') #1 {main} thrown in /in/hqnNk on line 7
Process exited with code 255.
Output for 8.0.13
16:00 Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /in/hqnNk:7 Stack trace: #0 /in/hqnNk(7): date('H:i', '12:31') #1 {main} thrown in /in/hqnNk on line 7
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
17:00 Notice: A non well formed numeric value encountered in /in/hqnNk on line 7 01:00 Notice: A non well formed numeric value encountered in /in/hqnNk on line 9 15:59
Output for 7.3.32 - 7.3.33
16:00 00:00 14:59
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
17:00 Notice: A non well formed numeric value encountered in /in/hqnNk on line 7 01:00 15:59

preferences:
283.49 ms | 402 KiB | 376 Q