3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date("Y-m-d"); $date2 = strtotime('-5 days', $date); echo date("Y-m-d H:i:s", $date);
Output for 5.1.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/g4sF3 on line 3 Notice: A non well formed numeric value encountered in /in/g4sF3 on line 4 1970-01-01 01:33:34
Output for 4.3.0 - 5.0.5, hhvm-3.10.0
1970-01-01 01:33:34