3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $monthToInt = 8223; 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Month to int: Type: integer; Value: 8223 Date string: January 1970-01-01 03:17:03.