3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date_diff("2013-01-04","2013-01-01");
Output for 5.5.24 - 5.6.21, 7.0.0 - 7.1.0
Warning: date_diff() expects parameter 1 to be DateTimeInterface, string given in /in/ekXOm on line 3
Output for hhvm-3.12.0
Catchable fatal error: Argument 1 passed to date_diff() must implement interface DateTimeInterface, string given in /in/ekXOm on line 3
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.5 - 5.4.45
Warning: date_diff() expects parameter 1 to be DateTime, string given in /in/ekXOm on line 3
Output for 5.2.16 - 5.2.17
Fatal error: Call to undefined function date_diff() in /in/ekXOm on line 3
Process exited with code 255.