3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CheckForEmptiness { private string $errorText = "Это поле обязательно для заполнения."; public function __invoke (mixed $value): ?string { $numberOfCharacters = iconv_strlen($value); return ($numberOfCharacters==0) ? $this->errorText : null; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CequU
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Class CheckForEmptiness:
Function __invoke:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CequU
function name:  __invoke
number of ops:  15
compiled vars:  !0 = $value, !1 = $numberOfCharacters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL_BY_NAME                                       'iconv_strlen'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   11     5        IS_EQUAL                                                 !1, 0
          6      > JMPZ                                                     ~4, ->10
          7    >   FETCH_OBJ_R                                      ~5      'errorText'
          8        QM_ASSIGN                                        ~6      ~5
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~6      null
         11    >   VERIFY_RETURN_TYPE                                       ~6
         12      > RETURN                                                   ~6
   12    13*       VERIFY_RETURN_TYPE                                       
         14*     > RETURN                                                   null

End of function __invoke

End of class CheckForEmptiness.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.66 ms | 994 KiB | 13 Q