1--TEST--
2Test base_convert() function: converting '0'
3--FILE--
4<?php
5echo 'Binary to decimal:', \PHP_EOL;
6var_dump(base_convert('0', 2, 10));
7echo 'Octal to decimal:', \PHP_EOL;
8var_dump(base_convert('0', 8, 10));
9echo 'Hexadecimal to decimal:', \PHP_EOL;
10var_dump(base_convert('0', 16, 10));
11?>
12--EXPECT--
13Binary to decimal:
14string(1) "0"
15Octal to decimal:
16string(1) "0"
17Hexadecimal to decimal:
18string(1) "0"
19