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*=\s*\"(.+)\"\s*/m', $comentario, $assert ); preg_match_all( '/(?P<nombre>\w+)/m', $comentario, $assert ); //preg_match_all( '/Assert\\\(?P<nombre>\w+)\((?P<parametros>\w+)\)\s*/m', $comentario, $assert ); //var_dump($assert); var_dump($assert); var_dump($comentario);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(8) { [0]=> string(7) "message" [1]=> string(2) "El" [2]=> string(6) "nombre" [3]=> string(2) "no" [4]=> string(5) "puede" [5]=> string(5) "estar" [6]=> string(3) "vac" [7]=> string(1) "o" } ["nombre"]=> array(8) { [0]=> string(7) "message" [1]=> string(2) "El" [2]=> string(6) "nombre" [3]=> string(2) "no" [4]=> string(5) "puede" [5]=> string(5) "estar" [6]=> string(3) "vac" [7]=> string(1) "o" } [1]=> array(8) { [0]=> string(7) "message" [1]=> string(2) "El" [2]=> string(6) "nombre" [3]=> string(2) "no" [4]=> string(5) "puede" [5]=> string(5) "estar" [6]=> string(3) "vac" [7]=> string(1) "o" } } string(43) "message = "El nombre no puede estar vacío""

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:
36.14 ms | 403 KiB | 8 Q