$date1 = strtotime('2021-02-21 22:04:47');
$date2 = strtotime('2021-02-23 14:15:50');
var_dump($date1 < $date2);
var_dump($date1 == $date2);
var_dump($date1 > $date2);
<?php if (isset($arResult['PROPERTIES']['VIDEO']['VALUE'])): ?>
<iframe class="media__iframe"
<?php
$url = $arResult['PROPERTIES']['VIDEO']['VALUE'];
if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/\s]{11})%i', $url, $match)) { $video_id = $match[1]; } ?>
<?php echo 'src="https://www.youtube.com/embed/'.$video_id.'"' ?>
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
<?php endif; ?>