3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $monthToInt = -10; printf("Month to int:\n\tType: %s; Value: %d\nDate string: %s.\n", gettype($monthToInt), $monthToInt, date('F Y-m-d H:i:s', $monthToInt));
Output for 4.3.0 - 7.1.0
Month to int: Type: integer; Value: -10 Date string: January 1970-01-01 00:59:50.