3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comentario = '/** * @var string * @Assert\NotBlank(message = "El nombre no puede estar vacĂ­o") * @Assert\Regex(pattern="/^ /", match = false, message="El nombre no puede empezar con espacios") * @Assert\Regex(pattern="/ $/", match = false, message="El nombre no puede terminar con espacios") */'; //preg_match_all( '/Assert\\\(?P<nombre>\w+)\((.+)\)\s*/m', $comentario, $assert ); preg_match_all( '/Assert\\\(?P<nombre>\w+)\((?P<parametros>\w+)\)\s*/m', $comentario, $assert ); var_dump($assert); /* $cadena = 'foobar: 2008'; preg_match_all('/(?P<nombre>\w+): (?P<digito>\d+)/', $cadena, $coincidencias); var_dump($coincidencias); */
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(0) { } ["nombre"]=> array(0) { } [1]=> array(0) { } ["parametros"]=> array(0) { } [2]=> array(0) { } }

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:
42.39 ms | 401 KiB | 8 Q