3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php setlocale(nl_NL); function my_strftime ($format, $timestamp) { $format = str_replace('%O', date('S', $timestamp), $format); return strftime($format, $timestamp); } echo my_strftime('%d%O -%m-%Y', time());
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant nl_NL - assumed 'nl_NL' in /in/6SAro on line 2 Warning: setlocale() expects at least 2 parameters, 1 given in /in/6SAro on line 2 06th -07-2013
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant nl_NL - assumed 'nl_NL' in /in/6SAro on line 2 Warning: setlocale() expects exactly 2 parameters, 1 given in /in/6SAro on line 2 06th -07-2013
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant nl_NL - assumed 'nl_NL' in /in/6SAro on line 2 Warning: Wrong parameter count for setlocale() in /in/6SAro on line 2 06th -07-2013