3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'asd' . chr(0x20) . ' ' . chr(0x19) . chr(0x00) . 'df'; var_dump($str); $str = preg_replace('/[x00-x19]/g', '', $str);
Output for 4.3.11 - 7.2.0
string(10) "asd df" Warning: preg_replace(): Unknown modifier 'g' in /in/O5va4 on line 4
Output for 4.3.0 - 4.3.10
string(10) "asd df" Warning: Unknown modifier 'g' in /in/O5va4 on line 4