1--TEST-- 2Test gmmktime() function : usage variation - Passing octal and hexadecimal values to arguments. 3--FILE-- 4<?php 5echo "*** Testing gmmktime() : usage variation ***\n"; 6 7// Initialise all required variables 8$hour = 010; 9$min = 010; 10$sec = 010; 11$mon = 010; 12$day = 010; 13$year = 03730; 14 15echo "\n-- Testing gmmktime() function with supplying octal values to arguments --\n"; 16var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) ); 17 18// Initialise all required variables 19$hour = 0x8; 20$min = 0x8; 21$sec = 0x8; 22$mon = 0x8; 23$day = 0x8; 24$year = 0x7D8; 25 26echo "\n-- Testing gmmktime() function with supplying hexa decimal values to arguments --\n"; 27var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) ); 28?> 29--EXPECT-- 30*** Testing gmmktime() : usage variation *** 31 32-- Testing gmmktime() function with supplying octal values to arguments -- 33int(1218182888) 34 35-- Testing gmmktime() function with supplying hexa decimal values to arguments -- 36int(1218182888) 37