3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (class_exists('DateTime') ){ $valido_desde = new DateTime('2015-10-27 13:00:05 Europe/Madrid'); var_dump($valido_desde <= (new DateTime()) ); }else{ echo 'DateTime did not exist yet'; }
based on FhGDb
Output for 5.2.2 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
bool(false)
Output for 5.2.0 - 5.2.1, 5.5.24 - 5.6.21, 7.0.0 - 7.0.6
bool(true)
Output for 4.3.0 - 5.1.6
DateTime did not exist yet