3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $images[] = "/cache/user-ErgL4WpHE4SGK7pc-2014-09-17_10-10-18-questionmark.png"; preg_match('/-([a-zA-Z0-9]*).png/', (string)current($images), $matches); var_dump($matches);
based on EGRSo
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(17) "-questionmark.png" [1]=> string(12) "questionmark" }
Output for hhvm-3.10.0

Process exited with code 153.