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.20 - 7.2.0
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 7.0.6
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1463827237 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 7.0.5
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1459666134 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 7.0.4
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1457639562 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 7.0.3
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458335544 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 7.0.2
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458703588 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 7.0.1
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458801468 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 7.0.0
Deprecated: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1459063896 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.6.28
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.6.21
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1462196402 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.20
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1460267428 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.19
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1457409599 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.18
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458046376 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.17
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458433619 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.16
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1459153248 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.15
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1459242613 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.14
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1460645483 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.13
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1460734288 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.12
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461131958 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.11
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461500691 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.10
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461594588 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.9
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461785877 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.6.8
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461990435 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.35
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1463958466 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.34
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1460361815 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.33
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1457506626 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.32
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458233306 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.31
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1458531272 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.30
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1459508560 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.29
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1460872151 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.28
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461230240 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.27
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461322655 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.26
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461690546 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.25
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1461890071 Fatal error: Class 'Date' not found in /in/c24m9 on line 4
Process exited with code 255.
Output for 5.5.24
Strict Standards: mktime(): You should be using the time() function instead in /in/c24m9 on line 2 Midnight of 1464073221 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.