3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = preg_replace('/-16|16-/','','16-17-18-16-19-20-16'); echo $val;
based on 0WR3h
Output for 4.3.0 - 7.1.0
17-18-19-20