3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('PROMOCAO_PDV_LIBERADO', date_create("2 days ago 8pm")->format('Y-m-d H:i:s')); var_dump(PROMOCAO_PDV_LIBERADO); echo PROMOCAO_PDV_LIBERADO;
based on 0N1gm
Output for 5.4.8 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
string(19) "2015-10-07 20:00:00" 2015-10-07 20:00:00
Output for 7.0.6
string(19) "2016-05-01 20:00:00" 2016-05-01 20:00:00
Output for 5.6.14, 7.0.5
string(19) "2016-03-31 20:00:00" 2016-03-31 20:00:00
Output for 7.0.4
string(19) "2016-03-08 20:00:00" 2016-03-08 20:00:00
Output for 7.0.3
string(19) "2016-03-16 20:00:00" 2016-03-16 20:00:00
Output for 7.0.2
string(19) "2016-03-20 20:00:00" 2016-03-20 20:00:00
Output for 7.0.1
string(19) "2016-03-21 20:00:00" 2016-03-21 20:00:00
Output for 7.0.0
string(19) "2016-03-24 20:00:00" 2016-03-24 20:00:00
Output for 5.6.21
string(19) "2016-04-30 20:00:00" 2016-04-30 20:00:00
Output for 5.6.20
string(19) "2016-04-07 20:00:00" 2016-04-07 20:00:00
Output for 5.6.19
string(19) "2016-03-05 20:00:00" 2016-03-05 20:00:00
Output for 5.6.18
string(19) "2016-03-13 20:00:00" 2016-03-13 20:00:00
Output for 5.6.17
string(19) "2016-03-17 20:00:00" 2016-03-17 20:00:00
Output for 5.6.16
string(19) "2016-03-25 20:00:00" 2016-03-25 20:00:00
Output for 5.6.15
string(19) "2016-03-27 20:00:00" 2016-03-27 20:00:00
Output for 5.6.13
string(19) "2016-04-13 20:00:00" 2016-04-13 20:00:00
Output for 5.6.12
string(19) "2016-04-17 20:00:00" 2016-04-17 20:00:00
Output for 5.6.11
string(19) "2016-04-21 20:00:00" 2016-04-21 20:00:00
Output for 5.6.10
string(19) "2016-04-23 20:00:00" 2016-04-23 20:00:00
Output for 5.6.9
string(19) "2016-04-25 20:00:00" 2016-04-25 20:00:00
Output for 5.6.8
string(19) "2016-04-27 20:00:00" 2016-04-27 20:00:00
Output for 5.5.35
string(19) "2016-05-20 20:00:00" 2016-05-20 20:00:00
Output for 5.5.34
string(19) "2016-04-08 20:00:00" 2016-04-08 20:00:00
Output for 5.5.33
string(19) "2016-03-06 20:00:00" 2016-03-06 20:00:00
Output for 5.5.32
string(19) "2016-03-15 20:00:00" 2016-03-15 20:00:00
Output for 5.5.31
string(19) "2016-03-18 20:00:00" 2016-03-18 20:00:00
Output for 5.5.30
string(19) "2016-03-30 20:00:00" 2016-03-30 20:00:00
Output for 5.5.29
string(19) "2016-04-14 20:00:00" 2016-04-14 20:00:00
Output for 5.5.28
string(19) "2016-04-18 20:00:00" 2016-04-18 20:00:00
Output for 5.5.27
string(19) "2016-04-20 20:00:00" 2016-04-20 20:00:00
Output for 5.5.26
string(19) "2016-04-24 20:00:00" 2016-04-24 20:00:00
Output for 5.5.25
string(19) "2016-04-26 20:00:00" 2016-04-26 20:00:00
Output for 5.5.24
string(19) "2016-05-21 20:00:00" 2016-05-21 20:00:00
Output for 5.4.2 - 5.4.7
string(19) "2015-10-25 20:00:00" 2015-10-25 20:00:00
Output for 5.3.27 - 5.3.29
string(19) "2015-10-29 20:00:00" 2015-10-29 20:00:00
Output for 5.3.18 - 5.3.26
string(19) "2015-10-31 20:00:00" 2015-10-31 20:00:00