3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(Date() + 10); var_dump(new Date() + 10);
Output for 7.0.0 - 7.1.0
Warning: date() expects at least 1 parameter, 0 given in /in/Ohfso on line 3 int(10) Fatal error: Uncaught Error: Class 'Date' not found in /in/Ohfso:5 Stack trace: #0 {main} thrown in /in/Ohfso on line 5
Process exited with code 255.
Output for hhvm-3.12.0
Warning: date() expects at least 1 parameter, 0 given in /in/Ohfso on line 3 int(10) Fatal error: Uncaught Error: Class undefined: Date in /in/Ohfso:5 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Warning: date() expects at least 1 parameter, 0 given in /in/Ohfso on line 3 int(10) Fatal error: Class undefined: Date in /in/Ohfso on line 5
Process exited with code 255.
Output for 5.1.1 - 5.6.28
Warning: date() expects at least 1 parameter, 0 given in /in/Ohfso on line 3 int(10) Fatal error: Class 'Date' not found in /in/Ohfso on line 5
Process exited with code 255.
Output for 5.1.0
Warning: date() expects at least 1 parameter, 0 given in /in/Ohfso on line 3 int(10) Notice: Object of class date could not be converted to int in /in/Ohfso on line 5 int(11)
Output for 5.0.0 - 5.0.5
Warning: Wrong parameter count for date() in /in/Ohfso on line 3 int(10) Fatal error: Class 'Date' not found in /in/Ohfso on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Wrong parameter count for date() in /in/Ohfso on line 3 int(10) Fatal error: Cannot instantiate non-existent class: date in /in/Ohfso on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for date() in /in/Ohfso on line 3 int(10) Fatal error: Cannot instantiate non-existent class: date in /in/Ohfso on line 5