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 4.3.11 - 5.6.21, 7.0.0 - 7.1.0
Warning: preg_match(): Unknown modifier 'g' in /in/fBRc2 on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Warning: Unknown modifier 'g': [/^(/img/up/)(.*)\.jpg$/i] 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)