3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(date_create('now 00:00:00')->format('d-m-y H:i:s'));
Output for 5.3.19 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
string(17) "12-11-15 00:00:00"
Output for 7.0.6
string(17) "03-05-16 00:00:00"
Output for 7.0.5
string(17) "03-04-16 00:00:00"
Output for 7.0.4
string(17) "10-03-16 00:00:00"
Output for 7.0.3
string(17) "18-03-16 00:00:00"
Output for 7.0.2
string(17) "23-03-16 00:00:00"
Output for 7.0.1
string(17) "24-03-16 00:00:00"
Output for 7.0.0
string(17) "27-03-16 00:00:00"
Output for 5.6.21
string(17) "02-05-16 00:00:00"
Output for 5.6.20
string(17) "10-04-16 00:00:00"
Output for 5.6.19
string(17) "08-03-16 00:00:00"
Output for 5.6.18
string(17) "15-03-16 00:00:00"
Output for 5.6.17
string(17) "19-03-16 00:00:00"
Output for 5.6.16
string(17) "28-03-16 00:00:00"
Output for 5.6.15
string(17) "29-03-16 00:00:00"
Output for 5.6.14
string(17) "02-04-16 00:00:00"
Output for 5.6.13
string(17) "15-04-16 00:00:00"
Output for 5.6.12
string(17) "20-04-16 00:00:00"
Output for 5.6.11
string(17) "24-04-16 00:00:00"
Output for 5.6.10
string(17) "25-04-16 00:00:00"
Output for 5.6.9
string(17) "27-04-16 00:00:00"
Output for 5.6.8
string(17) "30-04-16 00:00:00"
Output for 5.5.35
string(17) "22-05-16 00:00:00"
Output for 5.5.34
string(17) "11-04-16 00:00:00"
Output for 5.5.33
string(17) "09-03-16 00:00:00"
Output for 5.5.32
string(17) "17-03-16 00:00:00"
Output for 5.5.31
string(17) "21-03-16 00:00:00"
Output for 5.5.30
string(17) "01-04-16 00:00:00"
Output for 5.5.29
string(17) "17-04-16 00:00:00"
Output for 5.5.28
string(17) "21-04-16 00:00:00"
Output for 5.5.27
string(17) "22-04-16 00:00:00"
Output for 5.5.26
string(17) "26-04-16 00:00:00"
Output for 5.5.25
string(17) "29-04-16 00:00:00"
Output for 5.5.24
string(17) "24-05-16 00:00:00"