3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function checkSharedKey($shared_key): bool { if (strlen($shared_key) != 32) { return false; } if (trim($shared_key) == "") { return flase; } return true; } var_dump(checkSharedKey(' '));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pURcY
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'checksharedkey'
          2        SEND_VAL                                                 '++++++++++++++++++++++++++++++++'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function checksharedkey:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pURcY
function name:  checkSharedKey
number of ops:  16
compiled vars:  !0 = $shared_key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        STRLEN                                           ~1      !0
          2        IS_NOT_EQUAL                                             ~1, 32
          3      > JMPZ                                                     ~2, ->5
    7     4    > > RETURN                                                   <false>
    9     5    >   INIT_FCALL                                               'trim'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        IS_EQUAL                                                 $3, ''
          9      > JMPZ                                                     ~4, ->13
   10    10    >   FETCH_CONSTANT                                   ~5      'flase'
         11        VERIFY_RETURN_TYPE                                       ~5
         12      > RETURN                                                   ~5
   13    13    > > RETURN                                                   <true>
   14    14*       VERIFY_RETURN_TYPE                                       
         15*     > RETURN                                                   null

End of function checksharedkey

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.22 ms | 1014 KiB | 16 Q