Description
The following code:
<?php
$interval = new \DateInterval('PT0S');
$unit = 'h';
$interval->$unit += 0;
var_dump($interval->h);
https://3v4l.org/XP384#v8.3.20
Resulted in this output:
But I expected this output instead:
(Result we get from PHP 8.3.19 and 8.4.6)
It's possibly the root cause of #18337
PHP Version
8.3.20
Operating System
No response