3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $replace = array( '/</', '/>/', '/*/', '/!/', '/;/', '/#/', '/(/', '/)/', '/@/', '/|/', '/[/', '/]/', '/}/', '/{/', '/$/' ); print preg_replace( $replace, '', 'ls; ${}[]@()#!*<asdlad>' );
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in /in/0Dqie on line 19
Output for hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: nothing to repeat at offset 0 in /in/0Dqie on line 19
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in /in/0Dqie on line 19 Warning: preg_replace(): Compilation failed: missing ) at offset 1 in /in/0Dqie on line 19 Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 0 in /in/0Dqie on line 19 Warning: preg_replace(): Compilation failed: missing terminating ] for character class at offset 1 in /in/0Dqie on line 19 ls $[()*asdlad
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 0 in /in/0Dqie on line 19 Warning: Compilation failed: missing ) at offset 1 in /in/0Dqie on line 19 Warning: Compilation failed: unmatched parentheses at offset 0 in /in/0Dqie on line 19 Warning: Compilation failed: missing terminating ] for character class at offset 1 in /in/0Dqie on line 19 ls $[()*asdlad