3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getUserConsentsByUid(string $uid, array $filters = [], ?int $limit = null) { var_dump($limit); } getUserConsentsByUid('uid', []);
based on UqHLj
Output for 7.1.0 - 7.3.0rc3
NULL
Output for 5.6.38 - 7.0.28
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /in/V0DmA on line 3
Process exited with code 255.