run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); function foo($aaa):?int { return 3.3; } var_dump(foo(123));
Output for 7.3.0rc3
Fatal error: Uncaught TypeError: Return value of foo() must be of the type int or null, float returned in /in/vlQQk:4 Stack trace: #0 /in/vlQQk(7): foo(123) #1 {main} thrown in /in/vlQQk on line 4
Process exited with code 255.