3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t1 = '08/22/2016 12:00'; $t2 = '08/25/2016 10:00'; $d1 = new DateTime($t1); $d2 = new DateTime($t2); $i = $d2->diff($d1)->format('%H');
Output for 5.6.0 - 7.2.6