3v4l.org

run code in 500+ PHP versions simultaneously
<?php // check if crc32 is available echo function_exists('crc32') ? 'crc32 is available' : 'crc32 is not available'; echo PHP_EOL; // check if crc32 is available through hash function echo in_array('crc32', hash_algos()) ? 'crc32 is available through hash function' : 'crc32 is not available through hash function'; echo PHP_EOL; // check if crc32 can be used with hash function echo hash('crc32', 'The quick brown fox jumped over the lazy dog') ? 'crc32 can be used with hash function' : 'crc32 cannot be used with hash function'; echo PHP_EOL;
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 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
Branch analysis from position: 25
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
filename:       /in/3L6EJ
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'function_exists'
          1        SEND_VAL                                                     'crc32'
          2        DO_ICALL                                             $0      
          3      > JMPZ                                                         $0, ->6
          4    >   QM_ASSIGN                                            ~1      'crc32+is+available'
          5      > JMP                                                          ->7
          6    >   QM_ASSIGN                                            ~1      'crc32+is+not+available'
          7    >   ECHO                                                         ~1
    5     8        ECHO                                                         '%0A'
    8     9        INIT_FCALL                                                   'hash_algos'
         10        DO_ICALL                                             $2      
         11        FRAMELESS_ICALL_2                in_array            ~3      'crc32', $2
         12      > JMPZ                                                         ~3, ->15
         13    >   QM_ASSIGN                                            ~4      'crc32+is+available+through+hash+function'
         14      > JMP                                                          ->16
         15    >   QM_ASSIGN                                            ~4      'crc32+is+not+available+through+hash+function'
         16    >   ECHO                                                         ~4
    9    17        ECHO                                                         '%0A'
   12    18        INIT_FCALL                                                   'hash'
         19        SEND_VAL                                                     'crc32'
         20        SEND_VAL                                                     'The+quick+brown+fox+jumped+over+the+lazy+dog'
         21        DO_ICALL                                             $5      
         22      > JMPZ                                                         $5, ->25
         23    >   QM_ASSIGN                                            ~6      'crc32+can+be+used+with+hash+function'
         24      > JMP                                                          ->26
         25    >   QM_ASSIGN                                            ~6      'crc32+cannot+be+used+with+hash+function'
         26    >   ECHO                                                         ~6
   13    27        ECHO                                                         '%0A'
   14    28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.53 ms | 3365 KiB | 17 Q