3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("\x27"); var_dump('\x27'); var_dump(str_replace('\\', '/', \x27));
based on BVfGI
Output for 7.0.0 - 7.2.0
string(1) "'" string(4) "\x27" Fatal error: Uncaught Error: Undefined constant 'x27' in /in/68OIm:6 Stack trace: #0 {main} thrown in /in/68OIm on line 6
Process exited with code 255.
Output for 5.3.20 - 5.6.28
string(1) "'" string(4) "\x27" Fatal error: Undefined constant 'x27' in /in/68OIm on line 6
Process exited with code 255.