run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); function checkIt(int $test){ echo "I'm in here!"; } checkIt(null);
Output for 7.0.17
Fatal error: Uncaught TypeError: Argument 1 passed to checkIt() must be of the type integer, null given, called in /in/kCsLo on line 9 and defined in /in/kCsLo:4 Stack trace: #0 /in/kCsLo(9): checkIt(NULL) #1 {main} thrown in /in/kCsLo on line 4
Process exited with code 255.