3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = array('text1', 'text2', 'text-fixed-font3'); preg_match_all('#\d+#', $text, $matches); var_dump($matches);
Output for 4.3.3 - 7.1.0
Warning: preg_match_all() expects parameter 2 to be string, array given in /in/DsFQS on line 5 NULL
Output for 4.3.0 - 4.3.2
Notice: Array to string conversion in /in/DsFQS on line 5 array(1) { [0]=> array(0) { } }