3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Listing Created at Date - You can change it for testing purposes $createdAt = new \DateTime('2015-12-14'); // Server Current Date/Time $currentDate = new DateTime(); if( $createdAt->format('Y') >= 2016 || $currentDate->format('m') >= $createdAt->format('m') ) { echo 'Redirect'; } else { echo 'Hello Google.'; }
based on gO1sC
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.2.6
Hello Google.