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 /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesb..

Decoded Output download

<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 * Authors:
 * - Josh Soref
 * - Franois B
 * - JD Isaacks
 */
return [
    'year' => ':count ',
    'a_year' => '{1} |:count ',
    'month' => ':count ',
    'a_month' => '{1} |:count ',
    'week' => ':count ',
    'a_week' => '{1} |:count ',
    'day' => ':count ',
    'a_day' => '{1} |:count ',
    'hour' => ':count ',
    'a_hour' => '{1} |:count ',
    'minute' => ':count ',
    'a_minute' => '{1} |:count ',
    'second' => ':count ',
    'a_second' => '{1}- |:count ',
    'ago' => ':time ',
    'from_now' => static function ($time) {
        return $time.(preg_match('/$/u', $time) ? '' : (preg_match('//', $time) ? '' : ''));
    },
    'diff_yesterday' => '',
    'diff_today' => '',
    'diff_tomorrow' => '',
    'formats' => [
        'LT' => 'HH:mm',
        'LTS' => 'HH:mm:ss',
        'L' => 'DD-MM-YYYY',
        'LL' => 'YYYY [] MMMM [] D[-]',
        'LLL' => 'YYYY [] MMMM [] D[-], HH:mm',
        'LLLL' => 'dddd, YYYY [] MMMM [] D[-], HH:mm',
    ],
    'calendar' => [
        'sameDay' => '[] LT []',
        'nextDay' => '[] LT []',
        'nextWeek' => '[] dddd LT []',
        'lastDay' => '[] LT []',
        'lastWeek' => '[] dddd LT []',
        'sameElse' => 'L',
    ],
    'ordinal' => ':number-',
    'months' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'weekdays' => ['', '', '', '', '', '', ''],
    'weekdays_short' => ['', '', '', '', '', '', ''],
    'weekdays_min' => ['', '', '', '', '', '', ''],
    'first_day_of_week' => 1,
    'day_of_first_week_of_year' => 1,
    'list' => [', ', '  '],
];
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 * Authors:
 * - Josh Soref
 * - Franois B
 * - JD Isaacks
 */
return [
    'year' => ':count ',
    'a_year' => '{1} |:count ',
    'month' => ':count ',
    'a_month' => '{1} |:count ',
    'week' => ':count ',
    'a_week' => '{1} |:count ',
    'day' => ':count ',
    'a_day' => '{1} |:count ',
    'hour' => ':count ',
    'a_hour' => '{1} |:count ',
    'minute' => ':count ',
    'a_minute' => '{1} |:count ',
    'second' => ':count ',
    'a_second' => '{1}- |:count ',
    'ago' => ':time ',
    'from_now' => static function ($time) {
        return $time.(preg_match('/$/u', $time) ? '' : (preg_match('//', $time) ? '' : ''));
    },
    'diff_yesterday' => '',
    'diff_today' => '',
    'diff_tomorrow' => '',
    'formats' => [
        'LT' => 'HH:mm',
        'LTS' => 'HH:mm:ss',
        'L' => 'DD-MM-YYYY',
        'LL' => 'YYYY [] MMMM [] D[-]',
        'LLL' => 'YYYY [] MMMM [] D[-], HH:mm',
        'LLLL' => 'dddd, YYYY [] MMMM [] D[-], HH:mm',
    ],
    'calendar' => [
        'sameDay' => '[] LT []',
        'nextDay' => '[] LT []',
        'nextWeek' => '[] dddd LT []',
        'lastDay' => '[] LT []',
        'lastWeek' => '[] dddd LT []',
        'sameElse' => 'L',
    ],
    'ordinal' => ':number-',
    'months' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'weekdays' => ['', '', '', '', '', '', ''],
    'weekdays_short' => ['', '', '', '', '', '', ''],
    'weekdays_min' => ['', '', '', '', '', '', ''],
    'first_day_of_week' => 1,
    'day_of_first_week_of_year' => 1,
    'list' => [', ', '  '],
];

Function Calls

None

Variables

None

Stats

MD5 3c582db782b36a4e785aa508661b29cb
Eval Count 0
Decode Time 84 ms