3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "meow"; $b = $a . "\0woef"; $a = hash_hmac('sha512', $a, 'boegaboe', true); $b = hash_hmac('sha512', $b, 'boegaboe', true); var_dump( $a, $b, password_hash($a, PASSWORD_BCRYPT, ['salt' => 'boeschrikboeschrikboe!', 'cost' => 12]), password_hash($b, PASSWORD_BCRYPT, ['salt' => 'boeschrikboeschrikboe!', 'cost' => 12]) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6biJ
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'meow'
    4     1        CONCAT                                           ~3      !0, '%00woef'
          2        ASSIGN                                                   !1, ~3
    6     3        INIT_FCALL                                               'hash_hmac'
          4        SEND_VAL                                                 'sha512'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'boegaboe'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    7    10        INIT_FCALL                                               'hash_hmac'
         11        SEND_VAL                                                 'sha512'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 'boegaboe'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !1, $7
    9    17        INIT_FCALL                                               'var_dump'
   10    18        SEND_VAR                                                 !0
   11    19        SEND_VAR                                                 !1
   12    20        INIT_FCALL                                               'password_hash'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 '2y'
         23        SEND_VAL                                                 <array>
         24        DO_ICALL                                         $9      
         25        SEND_VAR                                                 $9
   13    26        INIT_FCALL                                               'password_hash'
         27        SEND_VAR                                                 !1
         28        SEND_VAL                                                 '2y'
         29        SEND_VAL                                                 <array>
         30        DO_ICALL                                         $10     
         31        SEND_VAR                                                 $10
         32        DO_ICALL                                                 
   14    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.28 ms | 1396 KiB | 19 Q