3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = mktime(); echo "Midnight of $d\n"; $date = new Date("Midnight of $d"); echo $date;
Output for 7.0.0 - 7.3.1
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283115 Fatal error: Uncaught Error: Class 'Date' not found in /in/c24m9:4 Stack trace: #0 {main} thrown in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.38
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283115 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.44 - 5.4.45
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283119 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.42 - 5.4.43
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283121 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.40 - 5.4.41
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283122 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.38 - 5.4.39
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283123 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.35 - 5.4.37
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283124 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.34
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283125 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.3.29, 5.4.30 - 5.4.32
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283126 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.26 - 5.4.29
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283127 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.3.28, 5.4.23 - 5.4.25
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283128 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.4.20 - 5.4.22
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283129 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.3.27, 5.4.16 - 5.4.19
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283130 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.3.23 - 5.3.26, 5.4.13 - 5.4.15
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283131 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.22, 5.4.10 - 5.4.12
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1450283132 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.