3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/Sao_Paulo'); $data = new DateTime(); echo format($data); // $formatter = new IntlDateFormatter('pt_BR', // IntlDateFormatter::LONG, // IntlDateFormatter::NONE, // IntlDateFormatter::GREGORIAN); // echo $formatter->format($data);
based on VlK6n
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function format() in /in/q5tgU:5 Stack trace: #0 {main} thrown in /in/q5tgU on line 5
Process exited with code 255.
Output for hhvm-3.11.1, hhvm-3.13.2 - 3.17.3
Fatal error: Uncaught Error: Call to undefined function format() in /in/q5tgU:5 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1, hhvm-3.12.14

Process exited with code 137.
Output for 5.4.0 - 5.6.30
Fatal error: Call to undefined function format() in /in/q5tgU on line 5
Process exited with code 255.