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:
* - Philippe Vaucher
* - Tsutomu Kuroda
* - yasinn
*/
return [
'year' => '{1}'.' '.'|:count '.'',
'month' => '{1}'.' '.'|:count '.'',
'week' => '{1}'.' '.'|:count '.'',
'day' => '{1}'.' '.'|:count '.'',
'hour' => '{1}'.' '.'|:count '.'',
'minute' => '{1}'.' '.'|:count '.'',
'second' => '{1}'.' '.'|:count '.'',
'ago' => ':time ',
'from_now' => ':time ',
'diff_today' => '',
'diff_yesterday' => '',
'diff_tomorrow' => '',
'diff_tomorrow_regexp' => '(?:\s+)?',
'diff_today_regexp' => '(?:\s+)?',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'YYYY-M-D-',
'LLL' => 'YYYY-M-D- HH:mm',
'LLLL' => 'dddd YYYY-M-D- HH:mm',
],
'calendar' => [
'sameDay' => '[ ] LT',
'nextDay' => '[ ] LT',
'nextWeek' => '[] dddd [] LT',
'lastDay' => '[] LT',
'lastWeek' => '[] dddd [] LT',
'sameElse' => 'L',
],
'ordinal' => static function ($number, $period) {
return match ($period) {
'd', 'D', 'DDD' => $number.'-',
'w', 'W' => $number.'-',
default => $number,
};
},
'meridiem' => static function ($hour, $minute) {
$time = $hour * 100 + $minute;
if ($time < 600) {
return ' ';
}
if ($time < 900) {
return '';
}
if ($time < 1130) {
return ' ';
}
if ($time < 1230) {
return '';
}
if ($time < 1800) {
return ' ';
}
return '';
},
'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:
* - Philippe Vaucher
* - Tsutomu Kuroda
* - yasinn
*/
return [
'year' => '{1}'.' '.'|:count '.'',
'month' => '{1}'.' '.'|:count '.'',
'week' => '{1}'.' '.'|:count '.'',
'day' => '{1}'.' '.'|:count '.'',
'hour' => '{1}'.' '.'|:count '.'',
'minute' => '{1}'.' '.'|:count '.'',
'second' => '{1}'.' '.'|:count '.'',
'ago' => ':time ',
'from_now' => ':time ',
'diff_today' => '',
'diff_yesterday' => '',
'diff_tomorrow' => '',
'diff_tomorrow_regexp' => '(?:\\s+)?',
'diff_today_regexp' => '(?:\\s+)?',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'YYYY-M-D-',
'LLL' => 'YYYY-M-D- HH:mm',
'LLLL' => 'dddd YYYY-M-D- HH:mm',
],
'calendar' => [
'sameDay' => '[ ] LT',
'nextDay' => '[ ] LT',
'nextWeek' => '[] dddd [] LT',
'lastDay' => '[] LT',
'lastWeek' => '[] dddd [] LT',
'sameElse' => 'L',
],
'ordinal' => static function ($number, $period) {
return match ($period) {
'd', 'D', 'DDD' => $number.'-',
'w', 'W' => $number.'-',
default => $number,
};
},
'meridiem' => static function ($hour, $minute) {
$time = $hour * 100 + $minute;
if ($time < 600) {
return ' ';
}
if ($time < 900) {
return '';
}
if ($time < 1130) {
return ' ';
}
if ($time < 1230) {
return '';
}
if ($time < 1800) {
return ' ';
}
return '';
},
'months' => ['', '', '', '', '', '', '', '', '', '', '', ''],
'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''],
'weekdays' => ['', '', '', '', '', '', ''],
'weekdays_short' => ['', '', '', '', '', '', ''],
'weekdays_min' => ['', '', '', '', '', '', ''],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' '],
];
Function Calls
None |
Stats
MD5 | d5ffab3143b8e090f0ca1fc4f3a84659 |
Eval Count | 0 |
Decode Time | 116 ms |