3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "The date is :" . date('Y-d-m H:i:s', '2014-02-05 5:22:35'); $date = strtotime(date('Y-d-m H:i:s', '2014-02-05 5:22:35')); $now = time(); echo round(abs($now - $date) / 60,2). " minutes ago";
Output for 5.1.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/qjvR9 on line 3 The date is :1970-01-01 01:33:34 Notice: A non well formed numeric value encountered in /in/qjvR9 on line 4 23315255.6 minutes ago
Output for 4.3.0 - 5.0.5
The date is :1970-01-01 01:33:3423315255.6 minutes ago