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:
 * - Sashko Todorov
 * - Josh Soref
 * - Franois B
 * - Serhan Apaydn
 * - Borislav Mickov
 * - JD Isaacks
 * - Tomi Atanasoski
 */

use Carbon\CarbonInterface;

return [
    'year' => ':count |:count ',
    'a_year' => '|:count ',
    'y' => ':count .',
    'month' => ':count |:count ',
    'a_month' => '|:count ',
    'm' => ':count |:count ',
    'week' => ':count |:count ',
    'a_week' => '|:count ',
    'w' => ':count |:count ',
    'day' => ':count |:count ',
    'a_day' => '|:count ',
    'd' => ':count |:count ',
    'hour' => ':count |:count ',
    'a_hour' => '|:count ',
    'h' => ':count |:count ',
    'minute' => ':count |:count ',
    'a_minute' => '|:count ',
    'min' => ':count .',
    'second' => ':count |:count ',
    'a_second' => ' |:count ',
    's' => ':count .',
    'ago' => ' :time',
    'from_now' => ' :time',
    'after' => ' :time',
    'before' => ' :time',
    'diff_now' => '',
    'diff_today' => '',
    'diff_today_regexp' => '(?:\s+)?',
    'diff_yesterday' => '',
    'diff_yesterday_regexp' => '(?:\s+)?',
    'diff_tomorrow' => '',
    'diff_tomorrow_regexp' => '(?:\s+)?',
    'formats' => [
        'LT' => 'H:mm',
        'LTS' => 'H:mm:ss',
        'L' => 'D.MM.YYYY',
        'LL' => 'D MMMM YYYY',
        'LLL' => 'D MMMM YYYY H:mm',
        'LLLL' => 'dddd, D MMMM YYYY H:mm',
    ],
    'calendar' => [
        'sameDay' => '[ ] LT',
        'nextDay' => '[ ] LT',
        'nextWeek' => '[] dddd [] LT',
        'lastDay' => '[ ] LT',
        'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) {
            0, 3, 6 => '[] dddd [] LT',
            default => '[] dddd [] LT',
        },
        'sameElse' => 'L',
    ],
    'ordinal' => static function ($number) {
        $lastDigit = $number % 10;
        $last2Digits = $number % 100;
        if ($number === 0) {
            return $number.'-';
        }
        if ($last2Digits === 0) {
            return $number.'-';
        }
        if ($last2Digits > 10 && $last2Digits < 20) {
            return $number.'-';
        }
        if ($lastDigit === 1) {
            return $number.'-';
        }
        if ($lastDigit === 2) {
            return $number.'-';
        }
        if ($lastDigit === 7 || $lastDigit === 8) {
            return $number.'-';
        }

        return $number.'-';
    },
    'months' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'weekdays' => ['', '', '', '', '', '', ''],
    'weekdays_short' => ['', '', '', '', '', '', ''],
    'weekdays_min' => ['e', 'o', '', '', '', '', 'a'],
    'first_day_of_week' => 1,
    'day_of_first_week_of_year' => 1,
    'list' => [', ', '  '],
    'meridiem' => ['', ''],
];
 ?>

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:
 * - Sashko Todorov
 * - Josh Soref
 * - Franois B
 * - Serhan Apaydn
 * - Borislav Mickov
 * - JD Isaacks
 * - Tomi Atanasoski
 */

use Carbon\CarbonInterface;

return [
    'year' => ':count |:count ',
    'a_year' => '|:count ',
    'y' => ':count .',
    'month' => ':count |:count ',
    'a_month' => '|:count ',
    'm' => ':count |:count ',
    'week' => ':count |:count ',
    'a_week' => '|:count ',
    'w' => ':count |:count ',
    'day' => ':count |:count ',
    'a_day' => '|:count ',
    'd' => ':count |:count ',
    'hour' => ':count |:count ',
    'a_hour' => '|:count ',
    'h' => ':count |:count ',
    'minute' => ':count |:count ',
    'a_minute' => '|:count ',
    'min' => ':count .',
    'second' => ':count |:count ',
    'a_second' => ' |:count ',
    's' => ':count .',
    'ago' => ' :time',
    'from_now' => ' :time',
    'after' => ' :time',
    'before' => ' :time',
    'diff_now' => '',
    'diff_today' => '',
    'diff_today_regexp' => '(?:\\s+)?',
    'diff_yesterday' => '',
    'diff_yesterday_regexp' => '(?:\\s+)?',
    'diff_tomorrow' => '',
    'diff_tomorrow_regexp' => '(?:\\s+)?',
    'formats' => [
        'LT' => 'H:mm',
        'LTS' => 'H:mm:ss',
        'L' => 'D.MM.YYYY',
        'LL' => 'D MMMM YYYY',
        'LLL' => 'D MMMM YYYY H:mm',
        'LLLL' => 'dddd, D MMMM YYYY H:mm',
    ],
    'calendar' => [
        'sameDay' => '[ ] LT',
        'nextDay' => '[ ] LT',
        'nextWeek' => '[] dddd [] LT',
        'lastDay' => '[ ] LT',
        'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) {
            0, 3, 6 => '[] dddd [] LT',
            default => '[] dddd [] LT',
        },
        'sameElse' => 'L',
    ],
    'ordinal' => static function ($number) {
        $lastDigit = $number % 10;
        $last2Digits = $number % 100;
        if ($number === 0) {
            return $number.'-';
        }
        if ($last2Digits === 0) {
            return $number.'-';
        }
        if ($last2Digits > 10 && $last2Digits < 20) {
            return $number.'-';
        }
        if ($lastDigit === 1) {
            return $number.'-';
        }
        if ($lastDigit === 2) {
            return $number.'-';
        }
        if ($lastDigit === 7 || $lastDigit === 8) {
            return $number.'-';
        }

        return $number.'-';
    },
    'months' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''],
    'weekdays' => ['', '', '', '', '', '', ''],
    'weekdays_short' => ['', '', '', '', '', '', ''],
    'weekdays_min' => ['e', 'o', '', '', '', '', 'a'],
    'first_day_of_week' => 1,
    'day_of_first_week_of_year' => 1,
    'list' => [', ', '  '],
    'meridiem' => ['', ''],
];

Function Calls

None

Variables

None

Stats

MD5 7538d5bdbe9f212c3173ffb9b132413f
Eval Count 0
Decode Time 122 ms