3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getUserConsentsByUid(string $uid, array $filters = [], $limit = 20) { var_dump($limit); } getUserConsentsByUid('uid', [], null);
based on V4R0h
Output for 7.0.28 - 7.3.0rc3
NULL
Output for 5.6.38
Catchable fatal error: Argument 1 passed to getUserConsentsByUid() must be an instance of string, string given, called in /in/Z5SRN on line 9 and defined in /in/Z5SRN on line 3
Process exited with code 255.