3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = "dfgdfg + fgdfgdf - dfgdfgdfg"; $output = preg_split( "/(+|-)/", $input ); print_r($output);
Output for 4.3.11 - 7.1.7
Warning: preg_split(): Compilation failed: nothing to repeat at offset 1 in /in/8n238 on line 5
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 1 in /in/8n238 on line 5