3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $css = "@charset \"derp\";\n@import test;\n@import derp;\n"; $matches = array(); $imports = preg_match("@^@import (.+);$@",$matches); print_r($imports);
Output for 4.3.3 - 5.6.23, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: preg_match() expects parameter 2 to be string, array given in /in/Jbr8u on line 5
Output for 4.3.0 - 4.3.2
Notice: Array to string conversion in /in/Jbr8u on line 5 Warning: Unknown modifier 'p' in /in/Jbr8u on line 5