Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <?php // Print the array from gettimeofday() print_r(gettimeofday()); echo "<br><br>"; // Print the float from gettimeofday() echo gettimeofday(true) . "<br><br>"; // Return current time; then format the output $mytime=gettimeofday(); echo "$mytime[sec].$mytime[usec]"; ?> </body> </html>