3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 1; declare(strict_types=1);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Fatal error: strict_types declaration must be the very first statement in the script in /in/SCJNS on line 5
Process exited with code 255.

preferences:
185.8 ms | 1399 KiB | 35 Q