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$/'), $s);
Output for 4.3.3 - 7.1.0
Warning: preg_match() expects at least 2 parameters, 1 given in /in/7J9SF on line 3 bool(false) string(110) "/var/www/vb/frontend/web/img/up/bf9b12de5ea78cecacd3dde69f2a72f8/140/5982aff2432c4e1847306300b0bd7622/19/s.jpg"
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for preg_match() in /in/7J9SF on line 3 NULL string(110) "/var/www/vb/frontend/web/img/up/bf9b12de5ea78cecacd3dde69f2a72f8/140/5982aff2432c4e1847306300b0bd7622/19/s.jpg"