3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('PROMOCAO_PDV_LIBERADO', date_create("2 days ago 8pm")); var_dump(PROMOCAO_PDV_LIBERADO); echo PROMOCAO_PDV_LIBERADO;
based on hA8Hk
Output for 7.2.0
Warning: Constants may only evaluate to scalar values or arrays in /in/Qt1FA on line 2 Warning: Use of undefined constant PROMOCAO_PDV_LIBERADO - assumed 'PROMOCAO_PDV_LIBERADO' (this will throw an Error in a future version of PHP) in /in/Qt1FA on line 4 string(21) "PROMOCAO_PDV_LIBERADO" Warning: Use of undefined constant PROMOCAO_PDV_LIBERADO - assumed 'PROMOCAO_PDV_LIBERADO' (this will throw an Error in a future version of PHP) in /in/Qt1FA on line 5 PROMOCAO_PDV_LIBERADO
Output for 7.0.0 - 7.1.10
Warning: Constants may only evaluate to scalar values or arrays in /in/Qt1FA on line 2 Notice: Use of undefined constant PROMOCAO_PDV_LIBERADO - assumed 'PROMOCAO_PDV_LIBERADO' in /in/Qt1FA on line 4 string(21) "PROMOCAO_PDV_LIBERADO" Notice: Use of undefined constant PROMOCAO_PDV_LIBERADO - assumed 'PROMOCAO_PDV_LIBERADO' in /in/Qt1FA on line 5 PROMOCAO_PDV_LIBERADO
Output for 5.3.18 - 5.6.28
Warning: Constants may only evaluate to scalar values in /in/Qt1FA on line 2 Notice: Use of undefined constant PROMOCAO_PDV_LIBERADO - assumed 'PROMOCAO_PDV_LIBERADO' in /in/Qt1FA on line 4 string(21) "PROMOCAO_PDV_LIBERADO" Notice: Use of undefined constant PROMOCAO_PDV_LIBERADO - assumed 'PROMOCAO_PDV_LIBERADO' in /in/Qt1FA on line 5 PROMOCAO_PDV_LIBERADO