3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $replace = array( '/</', '/>/', '/*/', /*'/!/', '/;/', '/#/', '/(/', '/)/', '/@/', '/|/', '/[/', '/]/', '/}/', '/{/', '/$/'*/ ); $e = array_fill(0, count($replace), ''); print preg_replace( $replace, $e, 'ls; ${}[]@()#!*<asdlad>' );
Output for 5.2.5 - 7.2.0
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in /in/BT7oK on line 21
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in /in/BT7oK on line 21 ls; ${}[]@()#!*asdlad
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 0 in /in/BT7oK on line 21 ls; ${}[]@()#!*asdlad