3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id ='sylvanas/*\'; if(preg_match("/'|\\\\/i", $id)){ echo('hacking detected'); } else { echo('bypassed!'); }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting identifier (T_STRING) in /in/GX6pc on line 5
Process exited with code 255.

preferences:
193.79 ms | 1395 KiB | 36 Q