3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
string(10) "asd df" Warning: preg_replace(): Unknown modifier 'g' in /in/O5va4 on line 4
Output for hhvm-3.10.0 - 3.12.0
string(10) "asd df" Warning: Unknown modifier 'g': [/[x00-x19]/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