3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(fnmatch('/lejebolig/*.html', 'lejebolig/1.html',FNM_PATHNAME)); var_dump(preg_match('/lejebolig/*.html', 'lejebolig/1.html'));
based on NJ8CY
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
bool(false) Warning: preg_match(): Unknown modifier '*' in /in/ln93N on line 5 bool(false)
Output for hhvm-3.15.4
bool(false) Warning: Unknown modifier '*': [/lejebolig/*.html] in /in/ln93N on line 5 bool(false)