3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hey hello no here heres something"; preg_match_all( '(he.*? )', $string, $matches); print_r( $matches);

preferences:
35.72 ms | 402 KiB | 5 Q