3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comentario = 'message = "El nombre no puede estar vacĂ­o"'; 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); var_dump($assert); foreach($assert['nombre'] as $indice => $valor) { if ($valor == 'NotBlank') { $restricciones[$nombre]['Requerido'] = $assert[2][$indice]; } } var_dump($restricciones);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> array(0) { } ["nombre"]=> array(0) { } [1]=> array(0) { } [2]=> array(0) { } } Warning: Undefined variable $restricciones in /in/MabCf on line 13 NULL

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