3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(function_exists('date_default_timezone_set')) { date_default_timezone_set('Europe/Brussels'); } echo date('Y-m-d', time('now')); ?>
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
2012-06-26
Output for hhvm-3.10.0 - 3.12.0
Warning: time() expects exactly 0 parameters, 1 given in /in/Jj5Et on line 6 1970-01-01