3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Set timezone date_default_timezone_set('Australia/Melbourne'); // Set timestamps to compare $tts = date('Y-m-d h:i:s'); // Today's timestamp $fts = '2014-29-01 12:00:00'; // Final 'end' timestamp $fts24 = '2014-28-01 12:00:00'; // Last 24 hours timestamp // Set conditions $show24 = false; $show = false; // $tts must be between $fts24 and $fts if( $tts => $fts24 && $tts =< $fts ) { $show24 = true; } // $show24 must be false (don't show last 24 hours banner) and $tts must be before $fts if( $show24 == false && $tts =< $fts ) { $show = true; } // Show either general or last 24hrs banner if($show24) : ?> <a href="#url1" id="banner"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/image24.jpg" alt="image" width="500" height="62" /> </a> <?php elseif($show): ?> <a href="#url2" id="banner"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/image.jpg" alt="image" width="500" height="62" /> </a> <?php endif; ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/EDR3J on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/EDR3J on line 16
Process exited with code 255.

preferences:
175.7 ms | 1395 KiB | 61 Q