3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val1 = '2014-03-18 10:33:00'; $val2 = '2014-03-18 10:34:00'; $datetime1 = new DateTime($val1); $datetime2 = new DateTime($val2); echo "<pre>"; $min = $datetime1->diff($datetime2); vardump($min->format('%i'));
based on vgVh1
Output for 7.0.0 - 7.2.0
<pre> Fatal error: Uncaught Error: Call to undefined function vardump() in /in/RfQs2:11 Stack trace: #0 {main} thrown in /in/RfQs2 on line 11
Process exited with code 255.
Output for 5.3.18 - 5.6.28
<pre> Fatal error: Call to undefined function vardump() in /in/RfQs2 on line 11
Process exited with code 255.