3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2016-05-14 16:00:00'); // From database $date2 = new DateTime(); // Today. $interval = $date->diff($date2); echo $interval->format('Skomentowano: %d dni %h godzin %i minut %s sekund temu.');
based on tn8Nm
Output for 5.5.0 - 7.2.6
Skomentowano: 0 dni 0 godzin 48 minut 12 sekund temu.