3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comentario = '\\'; $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( '/Assert\\\(?P<nombre>\w+)(.*)\s*/m', $comentario, $assert ); //preg_match_all( '/Assert\\\(?P<nombre>\w+)((?P<parametros>.+))\s*/m', $comentario, $assert ); //preg_match_all( '/Assert\\\(?P<nombre>\w+)\((.+)\)\s*/m', $comentario, $assert ); preg_match_all( '/Assert\\\(?P<nombre>\w+)\s*/m', $comentario, $assert ); var_dump($assert);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(3) { [0]=> string(15) "Assert\NotBlank" [1]=> string(12) "Assert\Regex" [2]=> string(12) "Assert\Regex" } ["nombre"]=> array(3) { [0]=> string(8) "NotBlank" [1]=> string(5) "Regex" [2]=> string(5) "Regex" } [1]=> array(3) { [0]=> string(8) "NotBlank" [1]=> string(5) "Regex" [2]=> string(5) "Regex" } }

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:
41.97 ms | 402 KiB | 8 Q