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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
Parse error: syntax error, unexpected integer "10" in /in/A6Sgj on line 6
Process exited with code 255.

preferences:
161.04 ms | 1000 KiB | 7 Q