3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ( bool ) 10; $a = ( bool ) 10; $a = ( /*comment*/ bool) 10;
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
Parse error: syntax error, unexpected integer "10" in /in/A6Sgj on line 6
Process exited with code 255.

preferences:
148.34 ms | 1431 KiB | 7 Q