3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ((new ReflectionClass(PDO::class))->getConstructor()->getParameters() as $parameter) { echo vsprintf("%-10s optional: %-10s default value: %s" . PHP_EOL, [ $parameter->getName(), $parameter->isOptional() ? 'yeop' : 'nope', $parameter->isDefaultValueAvailable() ? 'yeop' : 'nope', ]); }
Output for git.master, git.master_jit, rfc.property-hooks
dsn optional: nope default value: nope username optional: yeop default value: yeop password optional: yeop default value: yeop options optional: yeop default value: yeop

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.93 ms | 401 KiB | 8 Q