3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = '/var/www/vb/frontend/web/img/up/bf9b12de5ea78cecacd3dde69f2a72f8/140/5982aff2432c4e1847306300b0bd7622/19/s.jpg'; var_dump(preg_match('/^(/img/up/)(.*)(\.jpg)$/i', $s));
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Unknown modifier 'g' in /in/oRhpe on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Warning: Unknown modifier 'g': [/^(/img/up/)(.*)(\.jpg)$/i] in /in/oRhpe on line 3 bool(false)
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier 'g' in <b>/in/oRhpe</b> on line <b>3</b><br /> bool(false)
Output for 4.3.11 - 4.4.2
<br /> <b>Warning</b>: preg_match(): Unknown modifier 'g' in <b>/in/oRhpe</b> on line <b>3</b><br /> bool(false)
Output for 4.3.0 - 4.3.10
<br /> <b>Warning</b>: Unknown modifier 'g' in <b>/in/oRhpe</b> on line <b>3</b><br /> bool(false)