run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); function a(int $test){ echo "JA"; } a(1);
based on QLhct
Output for 7.0.0 - 7.2.0
Output for 5.3.22 - 5.6.21
Warning: Unsupported declare 'strict_types' in /in/iv4R6 on line 2 Catchable fatal error: Argument 1 passed to a() must be an instance of int, integer given, called in /in/iv4R6 on line 8 and defined in /in/iv4R6 on line 4
Process exited with code 255.