3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo ini_get( date.timezone); echo date_default_timezone_get(); echo date( 'Y-m-d', strtotime( 'today') );
Output for 5.1.0 - 7.1.0
Notice: Use of undefined constant date - assumed 'date' in /in/Y2bq7 on line 2 Notice: Use of undefined constant timezone - assumed 'timezone' in /in/Y2bq7 on line 2 Europe/Amsterdam2014-07-15
Output for 5.0.0 - 5.0.5
Notice: Use of undefined constant date - assumed 'date' in /in/Y2bq7 on line 2 Notice: Use of undefined constant timezone - assumed 'timezone' in /in/Y2bq7 on line 2 Fatal error: Call to undefined function date_default_timezone_get() in /in/Y2bq7 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant date - assumed 'date' in /in/Y2bq7 on line 2 Notice: Use of undefined constant timezone - assumed 'timezone' in /in/Y2bq7 on line 2 Fatal error: Call to undefined function: date_default_timezone_get() in /in/Y2bq7 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant date - assumed 'date' in /in/Y2bq7 on line 2 Notice: Use of undefined constant timezone - assumed 'timezone' in /in/Y2bq7 on line 2 Fatal error: Call to undefined function: date_default_timezone_get() in /in/Y2bq7 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant date - assumed 'date' in /in/Y2bq7 on line 2 Notice: Use of undefined constant timezone - assumed 'timezone' in /in/Y2bq7 on line 2 Fatal error: Call to undefined function: date_default_timezone_get() in /in/Y2bq7 on line 3