3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $monthToInt = strtotime("January"); printf("Month to int:\n\tType: %s; Value: %d\nDate string: %s.\n", gettype($monthToInt), $monthToInt, date('F', $monthToInt));
Output for 5.2.0 - 7.1.0
Month to int: Type: integer; Value: 1390258800 Date string: January.
Output for 5.1.0 - 5.1.6
Month to int: Type: boolean; Value: 0 Date string: January.
Output for 4.3.0 - 5.0.5
Month to int: Type: integer; Value: -1 Date string: January.