3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getUserConsentsByUid(string $uid, array $filters = [], ?int $limit) { var_dump($limit); } getUserConsentsByUid('uid', []);
based on IdjJs
Output for 7.1.0 - 7.3.0rc3
Fatal error: Uncaught ArgumentCountError: Too few arguments to function getUserConsentsByUid(), 2 passed in /in/UqHLj on line 9 and exactly 3 expected in /in/UqHLj:3 Stack trace: #0 /in/UqHLj(9): getUserConsentsByUid('uid', Array) #1 {main} thrown in /in/UqHLj on line 3
Process exited with code 255.
Output for 5.6.38 - 7.0.28
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /in/UqHLj on line 3
Process exited with code 255.