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/DkvDC on line 20
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in /in/DkvDC on line 20 Warning: preg_replace(): Compilation failed: missing ) at offset 1 in /in/DkvDC on line 20 Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 0 in /in/DkvDC on line 20 Warning: preg_replace(): Compilation failed: missing terminating ] for character class at offset 1 in /in/DkvDC on line 20 ls $[()*asdlad
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 0 in /in/DkvDC on line 20 Warning: Compilation failed: missing ) at offset 1 in /in/DkvDC on line 20 Warning: Compilation failed: unmatched parentheses at offset 0 in /in/DkvDC on line 20 Warning: Compilation failed: missing terminating ] for character class at offset 1 in /in/DkvDC on line 20 ls $[()*asdlad