3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i <= 1000; $i++){ $bob = function($x, $y = 10, $z = 'sponge bob'){ return $x + $y; }; $functionReflection = new ReflectionFunction($bob); $parameters = $functionReflection->getParameters(); foreach($parameters as $param) { echo $param->name . ' '; echo var_export($param->isOptional(), true) . ' '; echo $param->isOptional() ? var_export($param->getDefaultValue(), true) : '-'; echo "\n"; } }

Abusive script

This script was stopped while abusing our resources