3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('#(http|https):\/\/([.a-zA-Z0-9]*)mailjet\.([\S]*)#G', '//$2mailjet.$3', 'http://test.mailjet.com/?url=http://example.mailjet.com'));
Output for 7.3.0rc3
Warning: preg_replace(): Unknown modifier 'G' in /in/PqnnC on line 3 NULL