3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (array("*.css", "/*.css", "css/*.css", "css/foo*.css", "css/foo{bar,baz}.css") as $filename) { echo "dirname of {$filename} is ", dirname($filename), "\n"; }
Output for 4.3.0 - 7.2.0
dirname of *.css is . dirname of /*.css is / dirname of css/*.css is css dirname of css/foo*.css is css dirname of css/foo{bar,baz}.css is css