3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function aceitoNumero(int $campaignId) { } aceitoNumero([1]);
based on gHunE
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: Argument 1 passed to aceitoNumero() must be of the type integer, array given, called in /in/tjTs7 on line 8 and defined in /in/tjTs7:3 Stack trace: #0 /in/tjTs7(8): aceitoNumero(Array) #1 {main} thrown in /in/tjTs7 on line 3
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Catchable fatal error: Argument 1 passed to aceitoNumero() must be an instance of int, array given, called in /in/tjTs7 on line 8 and defined in /in/tjTs7 on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/tjTs7 on line 8
Process exited with code 255.