3v4l.org

run code in 200+ PHP versions simultaneously
<?php class double {} f(new double); function f(double $d){ var_dump($d); }
based on 4dGn7
Output for 7.1.25 - 7.3.5
object(double)#1 (0) { }