3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f($req, $opt = null,$params) { $e = sprintf('$req: %d; $opt: %d; number of params: %d'."\n", $req, $opt, count($params)); } $i=10000; while(--$i) { f(1); f(1, 2); f(1, 2, 3); f(1, 2, 3, 4); f(1, 2, 3, 4, 5); } ?>

Verbose script

This script was stopped because it was generating too much output