Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); return [ [ '123,456.79', 123456.789, ..

Decoded Output download

<?php

declare(strict_types=1);

return [
    [
        '123,456.79',
        123456.789,
        2,
        false,
    ],
    [
        '123456.8',
        123456.789,
        1,
        true,
    ],
    [
        '123456.79',
        123456.789,
        2,
        true,
    ],
    [
        '-123456.79',
        -123456.789,
        2,
        true,
    ],
    [
        '123500',
        123456.789,
        -2,
        true,
    ],
    [
        '123,500',
        123456.789,
        -2,
    ],
    [
        '-123500',
        -123456.789,
        -2,
        true,
    ],
    [
        '-123,500',
        -123456.789,
        -2,
    ],
    [
        '#VALUE!',
        'ABC',
        2,
        null,
    ],
    [
        '#VALUE!',
        123.456,
        'ABC',
        null,
    ],
    'no arguments' => ['exception'],
    'just one argument is okay' => ['123.00', 123],
    'null second argument' => ['123', 123, null],
    'false second argument' => ['123', 123, false],
    'true second argument' => ['123.0', 123, true],
];
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

return [
    [
        '123,456.79',
        123456.789,
        2,
        false,
    ],
    [
        '123456.8',
        123456.789,
        1,
        true,
    ],
    [
        '123456.79',
        123456.789,
        2,
        true,
    ],
    [
        '-123456.79',
        -123456.789,
        2,
        true,
    ],
    [
        '123500',
        123456.789,
        -2,
        true,
    ],
    [
        '123,500',
        123456.789,
        -2,
    ],
    [
        '-123500',
        -123456.789,
        -2,
        true,
    ],
    [
        '-123,500',
        -123456.789,
        -2,
    ],
    [
        '#VALUE!',
        'ABC',
        2,
        null,
    ],
    [
        '#VALUE!',
        123.456,
        'ABC',
        null,
    ],
    'no arguments' => ['exception'],
    'just one argument is okay' => ['123.00', 123],
    'null second argument' => ['123', 123, null],
    'false second argument' => ['123', 123, false],
    'true second argument' => ['123.0', 123, true],
];

Function Calls

None

Variables

None

Stats

MD5 55b62ea021ca0dc3c0c1f74944de5b13
Eval Count 0
Decode Time 82 ms