3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(gmdate('dS')); setlocale(LC_ALL, 'nl_NL'); var_dump(gmdate('dS'));
based on dsHmd
Output for 4.3.1 - 5.4.34, 5.6.9, 5.6.16, 5.6.28, 7.0.14 - 7.1.0
string(4) "27th" string(4) "27th"
Output for 7.0.6
string(4) "03rd" string(4) "03rd"
Output for 5.6.14, 5.6.21, 7.0.5
string(4) "02nd" string(4) "02nd"
Output for 5.5.34, 7.0.4
string(4) "10th" string(4) "10th"
Output for 7.0.3
string(4) "18th" string(4) "18th"
Output for 5.5.27, 5.5.35, 7.0.2
string(4) "22nd" string(4) "22nd"
Output for 5.6.11, 7.0.1
string(4) "23rd" string(4) "23rd"
Output for 5.5.26, 7.0.0
string(4) "26th" string(4) "26th"
Output for 5.4.35 - 5.4.42, 5.6.20
string(4) "09th" string(4) "09th"
Output for 5.6.19
string(4) "07th" string(4) "07th"
Output for 5.6.13, 5.6.18
string(4) "15th" string(4) "15th"
Output for 5.6.12, 5.6.17
string(4) "19th" string(4) "19th"
Output for 5.5.25, 5.6.15
string(4) "28th" string(4) "28th"
Output for 5.6.10
string(4) "25th" string(4) "25th"
Output for 5.6.8
string(4) "29th" string(4) "29th"
Output for 5.5.33
string(4) "08th" string(4) "08th"
Output for 5.5.32
string(4) "17th" string(4) "17th"
Output for 5.5.28, 5.5.31
string(4) "20th" string(4) "20th"
Output for 5.5.30
string(4) "01st" string(4) "01st"
Output for 5.5.29
string(4) "16th" string(4) "16th"
Output for 5.5.24
string(4) "24th" string(4) "24th"
Output for 4.3.0, 5.4.43 - 5.4.45
string(4) "06th" string(4) "06th"