3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test( $date ) { $reminder_time = strtotime( str_replace( '-', ' ', $date ) . ', 2015' ); $reminder_time = $reminder_time - ( DAY_IN_SECONDS ); var_dump( ( time() >= $reminder_time ) ); } test( 'nov-21' ); test( 'dec-23' ); test( 'dec-24' ); test( 'dec-25' );
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(true) Warning: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(false) Warning: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(false) Warning: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' (this will throw an Error in a future version of PHP) in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(false)
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(true) Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(false) Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(false) Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 Warning: A non-numeric value encountered in /in/spq6i on line 5 bool(false)
Output for 5.5.0 - 7.0.20
Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 bool(true) Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 bool(false) Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 bool(false) Notice: Use of undefined constant DAY_IN_SECONDS - assumed 'DAY_IN_SECONDS' in /in/spq6i on line 5 bool(false)