3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $timestamp = strtotime($indate); $current_time = strftime('%Y%m%d', time()); echo (strftime('%Y%m%d', $timestamp) - $current_time) === 0;
based on m1MIe
Output for 5.1.2 - 7.2.0
Notice: Undefined variable: indate in /in/4Tcuu on line 2
Output for 5.1.0 - 5.1.1
Notice: Undefined variable: indate in /in/4Tcuu on line 2 1
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: indate in /in/4Tcuu on line 2 Warning: strtotime(): Called with an empty time parameter. in /in/4Tcuu on line 2
Output for 5.0.1 - 5.0.3
Notice: Undefined variable: indate in /in/4Tcuu on line 2 Warning: strtotime(): Called with an empty time parameter. in /in/4Tcuu on line 2
Output for 4.3.2 - 5.0.0
Notice: Undefined variable: indate in /in/4Tcuu on line 2 Notice: strtotime(): Called with empty time parameter in /in/4Tcuu on line 2 1
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: indate in /in/4Tcuu on line 2 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/4Tcuu on line 2 1