3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(int $test) { echo $test . "\n"; } test((int)'test'); test((int)'123test'); test((int)123.00); test((int)123.123); test((int)true); test((int)false); test((int)null); test((int)123); test((int)[1]);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.8 ms | 1599 KiB | 17 Q