3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date1 = date("Y-m-d H:i:s"); sleep(1); $date2 = date("Y-m-d H:i:s"); if($date2 > $date1){ print 'rocks'; } else{ print 'foobar'; }
Output for 4.3.0 - 7.2.0
rocks