3v4l.org

run code in 300+ 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 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
Branch analysis from position: 28
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
Branch analysis from position: 18
filename:       /in/3L6EJ
function name:  (null)
number of ops:  32
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                                               'in_array'
         10        SEND_VAL                                                 'crc32'
         11        INIT_FCALL                                               'hash_algos'
         12        DO_ICALL                                         $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                         $3      
         15      > JMPZ                                                     $3, ->18
         16    >   QM_ASSIGN                                        ~4      'crc32+is+available+through+hash+function'
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~4      'crc32+is+not+available+through+hash+function'
         19    >   ECHO                                                     ~4
    9    20        ECHO                                                     '%0A'
   12    21        INIT_FCALL                                               'hash'
         22        SEND_VAL                                                 'crc32'
         23        SEND_VAL                                                 'The+quick+brown+fox+jumped+over+the+lazy+dog'
         24        DO_ICALL                                         $5      
         25      > JMPZ                                                     $5, ->28
         26    >   QM_ASSIGN                                        ~6      'crc32+can+be+used+with+hash+function'
         27      > JMP                                                      ->29
         28    >   QM_ASSIGN                                        ~6      'crc32+cannot+be+used+with+hash+function'
         29    >   ECHO                                                     ~6
   13    30        ECHO                                                     '%0A'
   14    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.86 ms | 1010 KiB | 17 Q