PHP VERSION: 8.2.18

uniform_variable_syntax_extreme_dereferencing.php

<?php

class Foo
{
    public function 
bar($a 1)
    {
        return function (
$a) {
            
$d = new DateTime();
            
$o $d->format('Y-m-d H:i:s');
            return 
$o ':' $a;
        };
    }
}

echo (new 
Foo())->bar()(22);

Output


2024-04-24 20:45:28:22
SOURCE CODE