3v4l.org

run code in 200+ PHP versions simultaneously
<?php function AddIntAndFloat(int $a, float $b) : int { \var_dump( $a, $b ); return $a + $b; } echo AddIntAndFloat(1.4,'2');
based on NNsSm
Output for 7.1.25 - 7.4.0rc2
int(1) float(2) 3