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+)\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(1) { [0]=> string(12) "foobar: 2008" } ["nombre"]=> array(1) { [0]=> string(6) "foobar" } [1]=> array(1) { [0]=> string(6) "foobar" } ["digito"]=> array(1) { [0]=> string(4) "2008" } [2]=> array(1) { [0]=> string(4) "2008" } }

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