@ 2017-10-18T14:12:23Z <?php
$today = new DateTime();
ob_start();
print_r($today);
ob_end_clean();
print($today->date);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 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 Warning: Undefined property: DateTime::$date in /in/r8VqE on line 9
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
Warning: Undefined property: DateTime::$date in /in/r8VqE on line 9
Output for 5.2.6 - 5.2.17 , 7.4.0 - 7.4.33 Notice: Undefined property: DateTime::$date in /in/r8VqE on line 9
Output for 7.3.33 2017-11-05 11:41:49.002403 Output for 7.3.32 2017-11-05 11:41:49.002458 Output for 7.3.31 2017-11-05 12:41:49.003240 Output for 7.3.30 2017-11-05 12:41:49.003281 Output for 7.3.29 2017-11-05 12:41:49.010450 Output for 7.3.28 2017-11-05 12:41:49.009024 Output for 7.3.27 2017-11-05 12:41:49.009036 Output for 7.3.26 2017-11-05 12:41:49.009393 Output for 7.3.25 2017-11-05 12:41:49.009473 Output for 7.3.24 2017-11-05 12:41:49.009119 Output for 7.3.23 2017-11-05 12:41:49.008275 Output for 7.3.21 2017-11-05 12:41:49.008527 Output for 7.3.20 2017-11-05 12:41:49.009042 Output for 7.3.19 2017-11-05 12:41:49.008066 Output for 7.3.18 2017-11-05 12:41:49.008817 Output for 7.3.17 2017-11-05 12:41:49.011049 Output for 7.3.16 2017-11-05 12:41:49.008544 Output for 7.3.12 2017-11-05 12:41:49.000208 Output for 7.2.25 , 7.3.11 2017-11-05 12:41:49.000195 Output for 7.3.10 2017-11-05 12:41:49.000136 Output for 7.3.9 2017-11-05 12:41:49.000133 Output for 7.2.18 , 7.3.8 2017-11-05 12:41:49.000138 Output for 7.3.7 2017-11-05 12:41:49.000255 Output for 7.2.20 , 7.3.6 2017-11-05 12:41:49.000142 Output for 7.3.5 2017-11-05 12:41:49.000134 Output for 7.3.4 2017-11-05 12:41:49.000178 Output for 7.3.3 2017-11-05 12:41:49.000171 Output for 7.1.28 , 7.1.30 , 7.3.2 2017-11-05 12:41:49.000123 Output for 7.3.1 2017-11-05 12:41:49.000127 Output for 7.3.0 2017-11-05 12:41:49.000096 Output for 7.2.33 2017-11-05 12:41:49.008750 Output for 7.2.32 2017-11-05 12:41:49.008820 Output for 7.2.31 2017-11-05 12:41:49.008609 Output for 7.2.30 2017-11-05 12:41:49.008385 Output for 7.2.29 2017-11-05 12:41:49.008865 Output for 7.2.24 2017-11-05 12:41:49.000220 Output for 7.2.23 2017-11-05 12:41:49.000210 Output for 7.2.22 2017-11-05 12:41:49.000148 Output for 7.2.21 2017-11-05 12:41:49.000191 Output for 7.2.19 2017-11-05 12:41:49.000189 Output for 7.2.17 2017-11-05 12:41:49.000183 Output for 7.2.16 2017-11-05 12:41:49.000149 Output for 7.2.15 2017-11-05 12:41:49.000111 Output for 7.2.14 2017-11-05 12:41:49.000110 Output for 7.2.13 2017-11-05 12:41:49.000106 Output for 7.2.9 , 7.2.12 2017-11-05 12:41:49.000107 Output for 7.2.11 2017-11-05 12:41:49.000139 Output for 7.2.10 2017-11-05 12:41:49.000135 Output for 7.2.8 2017-11-05 12:41:49.000108 Output for 7.2.7 2017-11-05 12:41:49.000121 Output for 7.1.32 , 7.2.3 , 7.2.6 2017-11-05 12:41:49.000103 Output for 7.2.5 2017-11-05 12:41:49.000129 Output for 7.2.4 2017-11-05 12:41:49.000162 Output for 7.2.2 2017-11-05 12:41:49.000160 Output for 7.2.1 2017-11-05 12:41:49.000143 Output for 7.2.0 2017-11-05 12:41:49.000102 Output for 7.1.33 2017-11-05 12:41:49.000164 Output for 7.1.31 2017-11-05 12:41:49.000119 Output for 7.1.29 2017-11-05 12:41:49.000150 Output for 7.1.27 2017-11-05 12:41:49.000161 Output for 7.1.26 2017-11-05 12:41:49.000137 Output for 7.1.25 2017-11-05 12:41:49.000114 Output for 7.1.20 2017-11-05 12:41:49.004508 Output for 7.1.11 2017-11-05 12:41:49.029809 Output for 7.1.10 2017-10-19 17:22:29.013863 Output for 7.1.9 2017-10-19 17:22:29.011015 Output for 7.1.8 2017-10-19 17:22:29.005516 Output for 7.1.7 2017-10-19 17:22:29.009972 Output for 7.1.6 2017-10-19 17:22:29.021407 Output for 7.1.5 2017-10-19 17:22:29.028444 Output for 7.1.4 2017-10-19 17:22:29.025259 Output for 5.4.30 - 5.4.45 , 5.5.14 - 5.5.38 , 5.6.0 - 5.6.30 , 7.0.0 - 7.0.24 , 7.1.3 2017-10-19 17:22:29.000000 Output for 7.1.2 2017-10-19 17:22:29.022246 Output for 7.1.1 2017-10-19 17:22:29.006480 Output for 7.1.0 2017-10-19 17:22:29.006600 Output for 7.0.25 2017-11-05 12:41:49.000000 Output for 5.3.0 - 5.3.29 , 5.4.0 - 5.4.29 , 5.5.0 - 5.5.13 2017-10-19 17:22:29 Output for 5.2.0 - 5.2.5 Notice: Undefined property: DateTime::$date in /in/r8VqE on line 9
Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 Fatal error: Class 'DateTime' not found in /in/r8VqE 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/r8VqE 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/r8VqE on line 3
preferences:dark mode live preview
291.54 ms | 401 KiB | 424 Q