3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replaceArgument($index, $argument) { if ($index < 0 || $index > count($this->arguments) - 1) { throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1)); } $this->arguments[$index] = $argument; return $this; } replaceArgument(1, null);

preferences:
41.29 ms | 402 KiB | 5 Q