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