3v4l.org

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