3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'hello [vimeo] how are you doing'; $replacement = preg_match('#[(.*?)]#', $s, $matches); print_r($matches); print_r($s);
Output for 4.3.0 - 7.2.0
Array ( ) hello [vimeo] how are you doing