--TEST-- Test gmmktime() function : usage variation - Passing positive and negative float values to arguments 32 bits. --SKIPIF-- --FILE-- 123456, 'float -123456' => -123456, 'float -10.5' => -10.5, ); // loop through each element of the array for min foreach($inputs as $key =>$value) { echo "\n--$key--\n"; var_dump( gmmktime($value, $min, $sec, $mon, $day, $year) ); var_dump( gmmktime($hour, $value, $sec, $mon, $day, $year) ); var_dump( gmmktime($hour, $min, $value, $mon, $day, $year) ); var_dump( gmmktime($hour, $min, $sec, $value, $day, $year) ); var_dump( gmmktime($hour, $min, $sec, $mon, $value, $value) ); } ?> --EXPECTF-- *** Testing gmmktime() : usage variation *** --float 123456-- int(1662595688) int(1225589768) int(1218306336) Warning: gmmktime(): Epoch doesn't fit in a PHP integer in %s on line %d bool(false) Warning: gmmktime(): Epoch doesn't fit in a PHP integer in %s on line %d bool(false) --float -123456-- int(773712488) int(1210775048) int(1218059424) Warning: gmmktime(): Epoch doesn't fit in a PHP integer in %s on line %d bool(false) Warning: gmmktime(): Epoch doesn't fit in a PHP integer in %s on line %d bool(false) --float -10.5-- int(1218118088) int(1218181808) int(1218182870) int(1170922088) Warning: gmmktime(): Epoch doesn't fit in a PHP integer in %s on line %d bool(false)