3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timestamp = -1861945262080; var_dump($timestamp, date("d-m-Y", $timestamp));
Output for 4.3.0 - 5.0.5, 5.2.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(-1861945262080) string(12) "21-04--57033"
Output for 5.1.0 - 5.2.3
int(-1861945262080) string(12) "10-04--57033"