3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/Chicago'); echo time(); echo PHP_EOL; echo strtotime("+12 days", "-1 day");
based on uTG7l
Output for 5.1.3 - 7.1.0, 7.1.6 - 7.3.0rc4
1432062481 Notice: A non well formed numeric value encountered in /in/63Hq8 on line 7 1036799
Output for 7.1.5
1432062482 Notice: A non well formed numeric value encountered in /in/63Hq8 on line 7 1036799
Output for 5.1.0 - 5.1.2
1432062481 Notice: A non well formed numeric value encountered in /in/63Hq8 on line 7
Process exited with code 137.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/63Hq8 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/63Hq8 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/63Hq8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/63Hq8 on line 3