3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="Wello!"; $h1=dechex(crc32($str)); $h2=hash("crc32",$str); var_dump($h1===$h2,$h1,$h2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ng7hi
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str, !1 = $h1, !2 = $h2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Wello%21'
    3     1        INIT_FCALL                                               'dechex'
          2        INIT_FCALL                                               'crc32'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'hash'
          9        SEND_VAL                                                 'crc32'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    5    13        INIT_FCALL                                               'var_dump'
         14        IS_IDENTICAL                                     ~9      !1, !2
         15        SEND_VAL                                                 ~9
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.8 ms | 1000 KiB | 17 Q