3v4l.org

run code in 200+ 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 4.3.11 - 7.2.0
Warning: preg_match(): Unknown modifier 'g' in /in/fBRc2 on line 3 bool(false)
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/fBRc2 on line 3 bool(false)