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