1--TEST-- 2Test octdec() - basic function test octdec() 3--SKIPIF-- 4<?php 5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); 6?> 7--FILE-- 8<?php 9 10echo "*** Testing octdec() : basic functionality ***\n"; 11 12$values = array(01234567, 13 0567, 14 017777777777, 15 020000000000, 16 0x1234ABC, 17 12345, 18 '01234567', 19 '0567', 20 '017777777777', 21 '020000000000', 22 '0x1234ABC', 23 '12345', 24 31101.3, 25 31.1013e5, 26 true, 27 false, 28 null); 29 30for ($i = 0; $i < count($values); $i++) { 31 $res = octdec($values[$i]); 32 var_dump($res); 33} 34?> 35===Done=== 36--EXPECT-- 37*** Testing octdec() : basic functionality *** 38int(14489) 39int(253) 40int(36947879) 41int(4618484) 42int(4104) 43int(5349) 44int(342391) 45int(375) 46int(2147483647) 47int(2147483648) 48int(668) 49int(5349) 50int(102923) 51int(823384) 52int(1) 53int(0) 54int(0) 55===Done=== 56