3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data_actula = date("Y-m-d"); $danta_anterior = date("Y-m-d") - (7 * 24 * 60 * 60); var_dump($data_actula); var_dump($danta_anterior);
based on ILdRc
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/gss76 on line 4 string(10) "2014-07-29" int(-602786)
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
string(10) "2014-07-29" int(-602786)