3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $update_flag = 0; $row_avail = array( 'field_windows_value' => '2014-09-18T00:00:00', 'field_windows_value2' => '2015-09-30T00:00:00' ); if ( $row_avail['field_windows_value'] != $row_avail['field_windows_value2'] ) { if ( strtotime($row_avail['field_windows_value']) < time() && time() <= strtotime($row_avail['field_windows_value2']) ) { $update_flag = 1; } } else { if ( strtotime($row_avail['field_windows_value']) < time() && $row_avail['field_windows_value'] != NULL ) { $update_flag = 1; } } print $update_flag;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1