3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $body = 'jasfjkdnjksdfnvv href="http://films.imhonet.ru/element/1341324/" ffr 3432 32 efwfrewqf ff3223423 href="http://imhonet.vk.com/?w=wall-14483947_3270" vfsdvfvfsdv '; var_dump(preg_replace( '/(?<=href=["\'])([^"\'\/]*?(?://)?[^"\'\/]*?imhonet\.ru/?[^"\']*)/im',#'/(?<=href=["\'])([^"\']+i '$1?partner_id='.'142342314'.'&auth_hash='.'dsf34rt43ff34rt43r', $body));
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): Unknown modifier '/' in /in/i6SJn on line 9 NULL
Output for 4.3.11 - 5.6.28
Warning: preg_replace(): Unknown modifier '/' in /in/i6SJn on line 10 NULL
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '/' in /in/i6SJn on line 10 NULL