3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function pla(int $nb){ echo 'mokmok'; return []; } pla(12);
based on csICA
Output for 7.0.0 - 7.2.0
mokmok
Output for 5.4.10 - 5.6.21
Catchable fatal error: Argument 1 passed to pla() must be an instance of int, integer given, called in /in/Z50nc on line 7 and defined in /in/Z50nc on line 2
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Z50nc on line 4
Process exited with code 255.