3v4l.org

run code in 200+ php & hhvm versions
<?php declare(strict_types=1); function multiply(float $a, float $b): int { return $a * $b; } $six = multiply(23); echo gettype(six);
based on VMCT0
Output for 7.1.25 - 7.4.0beta4
Fatal error: Uncaught ArgumentCountError: Too few arguments to function multiply(), 1 passed in /in/ieM79 on line 6 and exactly 2 expected in /in/ieM79:3 Stack trace: #0 /in/ieM79(6): multiply(23) #1 {main} thrown in /in/ieM79 on line 3
Process exited with code 255.