3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'a{ra:calc(*(la)100%);font-s'; $calc_regex = '(?<=:| |,|\\(|\\))(calc)\\s*(\\()\\s*((?:[^()]+|\\((?2)\\))*?)\\s*(\\))'; $string = preg_match('/'.$calc_regex.'/si', $string, $matches); var_dump($matches);
Output for 4.3.0 - 7.1.10
array(0) { }