3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $change = 1453404531; $then = date($change); $now = date("now"); $interval = date_diff($then, $now); echo $interval->format("%H:%I");
based on LQi7E
Output for 7.0.0 - 7.2.0
Warning: date_diff() expects parameter 1 to be DateTimeInterface, string given in /in/IE3VH on line 5 Fatal error: Uncaught Error: Call to a member function format() on boolean in /in/IE3VH:7 Stack trace: #0 {main} thrown in /in/IE3VH on line 7
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Warning: date_diff() expects parameter 1 to be DateTimeInterface, string given in /in/IE3VH on line 5 Fatal error: Call to a member function format() on boolean in /in/IE3VH on line 7
Process exited with code 255.
Output for 5.5.8 - 5.5.38
Warning: date_diff() expects parameter 1 to be DateTimeInterface, string given in /in/IE3VH on line 5 Fatal error: Call to a member function format() on a non-object in /in/IE3VH on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.7
Warning: date_diff() expects parameter 1 to be DateTime, string given in /in/IE3VH on line 5 Fatal error: Call to a member function format() on a non-object in /in/IE3VH on line 7
Process exited with code 255.