3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(default_timezone_get()); $epoch = 1483228800; echo date('r', $epoch) . PHP_EOL; // output as RFC 2822 date - returns local time echo gmdate('r', $epoch);
based on Tou8X
Output for 7.0.0 - 7.2.11
Fatal error: Uncaught Error: Call to undefined function default_timezone_get() in /in/nuKht:3 Stack trace: #0 {main} thrown in /in/nuKht on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Call to undefined function default_timezone_get() in /in/nuKht:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.21.3
Fatal error: Uncaught Error: Call to undefined function default_timezone_get() in /in/nuKht:3 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.38
Fatal error: Call to undefined function default_timezone_get() in /in/nuKht on line 3
Process exited with code 255.