3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date_time_set(date());
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.3.0
Warning: date() expects at least 1 parameter, 0 given in /in/6UG5V on line 3 Warning: date_time_set() expects at least 3 parameters, 1 given in /in/6UG5V on line 3
Output for hhvm-3.15.4
Warning: date() expects at least 1 parameter, 0 given in /in/6UG5V on line 3 Warning: date_time_set() expects at least 3 parameters, 1 given in /in/6UG5V on line 3 Fatal error: Uncaught TypeError: Argument 1 passed to date_time_set() must be an instance of DateTime, bool given in /in/6UG5V:3 Stack trace: #0 /in/6UG5V(3): date_time_set() #1 {main}
Process exited with code 255.