3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rm = new ReflectionMethod(Collator::class, 'getSortKey'); var_dump($rm->getNumberOfParameters()); var_dump($rm->getNumberOfRequiredParameters()); $rf = new ReflectionFunction('collator_get_sort_key'); var_dump($rf->getNumberOfParameters()); var_dump($rf->getNumberOfRequiredParameters());
Output for hhvm-3.15.4, 7.1.7 - 7.2.6
int(1) int(1) int(2) int(2)
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
int(2) int(2) int(3) int(3)