3v4l.org

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

End of function __invoke

End of class CheckForSymbolQuality.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.08 ms | 1000 KiB | 15 Q