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") */'; //echo preg_match( '/Assert\\\/m', $comentario, $assert ); //var_dump($assert); preg_match( '/Assert\\\(.*)\s*/m', $comentario, $assert ); var_dump($assert); preg_match( '/Assert\\\(?P<nombre>\w+)(.*)\s*/m', $comentario, $assert ); var_dump($assert);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ht7k6
function name:  (null)
number of ops:  19
compiled vars:  !0 = $comentario, !1 = $assert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5C'
    3     1        ASSIGN                                                   !0, '%2F%2A%2A%0A+++++%2A+%40var+string%0A+++++%2A+%40Assert%5CNotBlank%28message+%3D+%22El+nombre+no+puede+estar+vac%C3%ADo%22%29%0A+++++%2A+%40Assert%5CRegex%28pattern%3D%22%2F%5E+%2F%22%2C+match+%3D+false%2C+message%3D%22El+nombre+no+puede+empezar+con+espacios%22%29%0A+++++%2A+%40Assert%5CRegex%28pattern%3D%22%2F+%24%2F%22%2C+match+%3D+false%2C+message%3D%22El+nombre+no+puede+terminar+con+espacios%22%29%0A+++++%2A%2F'
   12     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2FAssert%5C%5C%28.%2A%29%5Cs%2A%2Fm'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
   13     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   14    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2FAssert%5C%5C%28%3FP%3Cnombre%3E%5Cw%2B%29%28.%2A%29%5Cs%2A%2Fm'
         12        SEND_VAR                                                 !0
         13        SEND_REF                                                 !1
         14        DO_ICALL                                                 
   15    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.8 ms | 1395 KiB | 17 Q