- print_r: documentation ( source)
- setlocale: documentation ( source)
<?php
setlocale(LC_TIME, 'il_HE');
$date = '20230121';
$date_from_format = DateTime::createFromFormat('Ymd', $date, new DateTimeZone('Europe/Berlin'));
print_r([
$date_from_format->format('j'),
$date_from_format->format('F'),
$date_from_format->format('Y'),
]);