3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'sdfsdfsdf<table id="test">dfsdfsdff fsaf sfsf ssfasf</table>end'; echo preg_replace('/\<table(*)+/', '', $a);
based on u1BmN
Output for 4.3.11 - 7.1.0
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 8 in /in/MS4iQ on line 5
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 8 in /in/MS4iQ on line 5