1--TEST--
2Test expm1() - basic function test for expm1()
3--INI--
4serialize_precision=14
5--FILE--
6<?php
7echo "*** Testing expm1() : basic functionality ***\n";
8$values = array(10,
9                10.3,
10                3.9505e3,
11                037,
12                0x5F,
13                "10",
14                "3950.5",
15                "3.9505e3",
16                "039",
17                true,
18                false,
19                );
20
21// loop through each element of $values to check the behaviour of expm1()
22$iterator = 1;
23foreach($values as $value) {
24    echo "\n-- Iteration $iterator --\n";
25    var_dump(expm1($value));
26    $iterator++;
27};
28?>
29--EXPECT--
30*** Testing expm1() : basic functionality ***
31
32-- Iteration 1 --
33float(22025.465794807)
34
35-- Iteration 2 --
36float(29731.618852891)
37
38-- Iteration 3 --
39float(INF)
40
41-- Iteration 4 --
42float(29048849665246)
43
44-- Iteration 5 --
45float(1.811239082889E+41)
46
47-- Iteration 6 --
48float(22025.465794807)
49
50-- Iteration 7 --
51float(INF)
52
53-- Iteration 8 --
54float(INF)
55
56-- Iteration 9 --
57float(8.6593400423994E+16)
58
59-- Iteration 10 --
60float(1.718281828459)
61
62-- Iteration 11 --
63float(0)
64