3v4l.org

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

preferences:
176.85 ms | 1395 KiB | 48 Q