3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: missing ) at offset 1 in /in/gkSlW on line 21
Output for hhvm-3.10.0 - 3.12.0
Warning: 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