3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ah = date("H:i:s Y-m-d"); $ahseg=mktime($ah); echo $ahseg."\n".time();
Output for 8.0.1 - 8.0.16, 8.1.0 - 8.1.3, 8.3.11
Fatal error: Uncaught TypeError: mktime(): Argument #1 ($hour) must be of type int, string given in /in/she2g:4 Stack trace: #0 /in/she2g(4): mktime('11:49:20 2022-0...') #1 {main} thrown in /in/she2g on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.28
Notice: A non well formed numeric value encountered in /in/she2g on line 4 1645526960 1645526960

preferences:
56.56 ms | 407 KiB | 5 Q