3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CheckForSymbolQuality { private string $format = 'Это поле может содержать следующие символы - %s. Проверьте, не использовали ли Вы символ, который не входит в этот список.'; private string $pattern; private string $verbalDescriptionOfPattern; public function __construct(string $pattern, string $verbalDescriptionOfPattern) { $this->pattern = $pattern; $this->verbalDescriptionOfPatter = $verbalDescriptionOfPatter; } public function __invoke (mixed $value): ?string { return preg_match($this->pattern, $value) ? null : sprintf($format, $this->verbalDescriptionOfPattern); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z3pIi
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                       1

Class CheckForSymbolQuality:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z3pIi
function name:  __construct
number of ops:  7
compiled vars:  !0 = $pattern, !1 = $verbalDescriptionOfPattern, !2 = $verbalDescriptionOfPatter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   13     2        ASSIGN_OBJ                                                   'pattern'
          3        OP_DATA                                                      !0
   14     4        ASSIGN_OBJ                                                   'verbalDescriptionOfPatter'
          5        OP_DATA                                                      !2
   15     6      > RETURN                                                       null

End of function __construct

Function __invoke:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z3pIi
function name:  __invoke
number of ops:  16
compiled vars:  !0 = $value, !1 = $format
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   RECV                                                 !0      
   19     1        FETCH_OBJ_R                                          ~2      'pattern'
          2        FRAMELESS_ICALL_2                preg_match          ~3      ~2, !0
          3      > JMPZ                                                         ~3, ->6
          4    >   QM_ASSIGN                                            ~4      null
          5      > JMP                                                          ->12
          6    >   INIT_FCALL                                                   'sprintf'
          7        SEND_VAR                                                     !1
          8        FETCH_OBJ_R                                          ~5      'verbalDescriptionOfPattern'
          9        SEND_VAL                                                     ~5
         10        DO_ICALL                                             $6      
         11        QM_ASSIGN                                            ~4      $6
         12    >   VERIFY_RETURN_TYPE                                           ~4
         13      > RETURN                                                       ~4
   20    14*       VERIFY_RETURN_TYPE                                           
         15*     > RETURN                                                       null

End of function __invoke

End of class CheckForSymbolQuality.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.92 ms | 1578 KiB | 14 Q