3v4l.org

run code in 200+ php & hhvm versions
<?php declare(strict_types=1); function multiply(2, 3): int { return $a * $b; } $six = multiply(2,3); echo gettype(six);
based on c4tc8
Output for 7.1.25 - 7.4.0beta4
Parse error: syntax error, unexpected '2' (T_LNUMBER), expecting variable (T_VARIABLE) in /in/fNnqp on line 3
Process exited with code 255.