3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a(?string $one = "asd", ?string $two = "zxc"): void { var_dump($one, $two); } a(null, "zap");
Output for 7.1.0 - 7.2.10
NULL string(3) "zap"
Output for 5.6.38 - 7.0.28
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /in/bih3d on line 3
Process exited with code 255.