testsamedates - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of testsamedates.php
- <?php
- $seconds = strtotime("1800-01-01 00:00:00:000000");
- $time1 = date_create_from_format("Y-m-d H:i:s:u", "1800-01-01 00:00:00:000000");
- $time2 = date_create_from_format("Y-m-d H:i:s:u", "1800-01-01 00:00:00:000000");
- if ($time1 == $time2) {
- print "same!";
- } else {
- print "not!";
- }
- print PHP_EOL;
- var_dump($time1);
- var_dump($time2);