3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 0; $var ~= 1; var_dump($var);
Output for 8.0.1 - 8.0.14, 8.1.0 - 8.1.1
Parse error: syntax error, unexpected token "~" in /in/N9OYF on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.27
Parse error: syntax error, unexpected '~' in /in/N9OYF on line 4
Process exited with code 255.

preferences:
30.15 ms | 409 KiB | 5 Q