3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/hello/','i says hello to you',$matches); print_r($matches); ?>