@ 2015-02-20T15:45:12Z <?php
$startDate = new DateTime("now");
$endDate = new DateTime("2015-02-23");
$interval = $endDate->diff($startDate);
echo $interval->s;
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.2.29 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.4 , 8.3.6 46 Output for 8.3.5 Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
46 Output for 5.6.28 , 7.0.14 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.6 47 Output for 5.5.35 , 7.0.6 8 Output for 7.0.5 19 Output for 7.0.4 52 Output for 7.0.3 31 Output for 5.5.31 , 7.0.2 34 Output for 7.0.1 57 Output for 7.0.0 22 Output for 5.3.5 - 5.3.18 , 5.6.21 36 Output for 5.6.20 5 Output for 5.6.19 32 Output for 5.3.19 - 5.3.29 , 5.4.0 - 5.4.1 , 5.6.9 , 5.6.18 37 Output for 5.6.17 17 Output for 5.6.12 , 5.6.16 28 Output for 5.6.15 25 Output for 5.6.14 45 Output for 5.6.8 , 5.6.13 48 Output for 5.6.11 21 Output for 5.4.42 , 5.5.33 , 5.6.10 0 Output for 5.5.32 , 5.5.34 43 Output for 5.4.39 - 5.4.40 , 5.5.30 54 Output for 5.5.29 42 Output for 5.5.28 59 Output for 5.5.27 2 Output for 5.4.29 - 5.4.38 , 5.5.26 40 Output for 5.5.25 41 Output for 5.5.24 23 Output for 5.4.45 27 Output for 5.4.44 50 Output for 5.4.43 1 Output for 5.4.41 58 Output for 5.4.16 - 5.4.28 39 Output for 5.4.2 - 5.4.15 38 Output for 5.3.0 - 5.3.4 35 Output for 5.2.0 - 5.2.17 Fatal error: Call to undefined method DateTime::diff() in /in/KaYhO on line 5
Process exited with code 255 . Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 Fatal error: Class 'DateTime' not found in /in/KaYhO on line 3
Process exited with code 255 . Output for 4.3.2 - 4.3.11 , 4.4.0 - 4.4.9 Fatal error: Cannot instantiate non-existent class: datetime in /in/KaYhO on line 3
Process exited with code 255 . Output for 4.3.0 - 4.3.1 Fatal error: Cannot instantiate non-existent class: datetime in /in/KaYhO on line 3
preferences:dark mode live preview
226.1 ms | 401 KiB | 312 Q