3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('EXPIRY_NOTIFICATION_TIME', 60 * 60 * 24 * 14); $now = time(); $s1 = '_date > '; $s2 = ' AND...'; var_dump($now); var_dump(EXPIRY_NOTIFICATION_TIME); var_dump($now + EXPIRY_NOTIFICATION_TIME); $str = $s1 . $now + EXPIRY_NOTIFICATION_TIME . $s2; echo $str;
based on TI8c7
Output for 7.1.0 - 7.2.0
int(1451323117) int(1209600) int(1452532717) Warning: A non-numeric value encountered in /in/D4mp1 on line 9 1209600 AND...
Output for 5.5.0 - 7.0.20
int(1451323117) int(1209600) int(1452532717) 1209600 AND...