3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(array $b=null){ echo $b; } class A{ protected $b; public function getB() { return $this->b; } } $a= new A(); test($a->getB());
based on 8YPMb
Output for 5.6.0 - 7.3.0rc4