3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'Si es estudiante de intercambio, elija su país de origen: - No soy un estudiante de intercambio Tu interés en nuestra oferta de titulaciones se centra en los estudios de: - grado '; $regex = "/(?:.*?- )(?<param_0>.*?)( Tu inter| Your main interest)(?:.*?- )(?<param_1>.*?) \)/"; if (preg_match_all($regex, $message, $matches)) { $param_0 = $matches[0]; $param_1 = $matches[1]; echo 'Param 0: '; echo $param_0; echo '<br>Param 1: '; echo $param_1; echo '<br>'; } else { echo 'no match'; }
Output for git.master, git.master_jit, rfc.property-hooks
no match

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.66 ms | 401 KiB | 8 Q