3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = \x2B | ~\x2B; var_dump($a);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Undefined constant 'x2B' in /in/qWbt4:3 Stack trace: #0 {main} thrown in /in/qWbt4 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Undefined constant 'x2B' in /in/qWbt4 on line 3
Process exited with code 255.
Output for 4.3.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/qWbt4 on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/qWbt4 on line 3 Notice: Use of undefined constant x2B - assumed 'x2B' in /in/qWbt4 on line 3 Notice: Use of undefined constant x2B - assumed 'x2B' in /in/qWbt4 on line 3 string(3) "���"