3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function multiply(2, 3): int { return $a * $b; } $six = multiply(2,3); echo gettype(six);
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.22, 7.3.0 - 7.3.9
Parse error: syntax error, unexpected '2' (T_LNUMBER), expecting variable (T_VARIABLE) in /in/fNnqp on line 3
Process exited with code 255.

preferences:
173.36 ms | 1395 KiB | 48 Q