3v4l.org

run code in 500+ 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 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pURcY
function name:  checkSharedKey
number of ops:  14
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    >   FRAMELESS_ICALL_1                trim                ~3      !0
          6        IS_EQUAL                                                     ~3, ''
          7      > JMPZ                                                         ~4, ->11
   10     8    >   FETCH_CONSTANT                                       ~5      'flase'
          9        VERIFY_RETURN_TYPE                                           ~5
         10      > RETURN                                                       ~5
   13    11    > > RETURN                                                       <true>
   14    12*       VERIFY_RETURN_TYPE                                           
         13*     > RETURN                                                       null

End of function checksharedkey

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.79 ms | 2372 KiB | 15 Q