3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "testing bit operations\n"; $flag = 0; echo "To start, the setting will be off: $flag\n"; echo "Now we will see if any of the bits are set.\n" echo "1: ". $flag & 1 == 1 ."\n"; echo "2: ". $flag & 2 == 2 ."\n"; echo "4: ". $flag & 4 == 4 ."\n"; echo "test";
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in /in/vJOno on line 6
Process exited with code 255.

preferences:
211.11 ms | 1395 KiB | 67 Q