1--TEST--
2Test return type and value for expected input max()
3--FILE--
4<?php
5/*
6 * proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])
7 * Function is implemented in ext/standard/array.c
8*/
9
10echo "\n*** Testing sequences of numbers ***\n";
11
12var_dump(max(2,1,2));
13var_dump(max(-2,1,2));
14var_dump(max(2.1,2.11,2.09));
15var_dump(max("", "t", "b"));
16var_dump(max(false, true, false));
17var_dump(max(true, false, true));
18var_dump(max(1, true, false, true));
19var_dump(max(0, true, false, true));
20var_dump(max(0, 1, array(2,3)));
21
22echo "\nDone\n";
23?>
24--EXPECT--
25
26*** Testing sequences of numbers ***
27int(2)
28int(2)
29float(2.11)
30string(1) "t"
31bool(true)
32bool(true)
33int(1)
34bool(true)
35array(2) {
36  [0]=>
37  int(2)
38  [1]=>
39  int(3)
40}
41
42Done
43