3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "20.08.2015"; $time = gmmktime(0, 0, 0, 1, 1, 1900) + ($date - 2) * 24 * 60 * 60; print_r(gmdate("Y-m-d", $time));
based on hvNRd
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/949Iv on line 5 1900-01-19
Output for 5.3.18 - 7.0.20
1900-01-19