3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class SkipVariadic { private $b = 1; public function set($a, $b = null) { if (func_num_args() > 1) { $this->b = $b; } } public function get() { $this->set(1, null); return $this->b; } } $x = new SkipVariadic(); var_dump($x->get());
Output for 8.3.9
NULL

preferences:
169.92 ms | 1100 KiB | 15 Q