3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0b0000; $y = 0b0001; var_dump($x|$);
Output for 7.0.0 - 7.0.13
Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) or '{' or '$' in /in/Ubd8t on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) or '$' in /in/Ubd8t on line 5
Process exited with code 255.

preferences:
160.13 ms | 1395 KiB | 50 Q