3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "meow"; $b = $a . "\0woef"; $a = hash_hmac('sha512', $a, 'boegaboe'); $b = hash_hmac('sha512', $b, 'boegaboe'); var_dump( strlen($a), strlen($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/qSTZj
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        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
    7     9        INIT_FCALL                                               'hash_hmac'
         10        SEND_VAL                                                 'sha512'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 'boegaboe'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    9    15        INIT_FCALL                                               'var_dump'
   10    16        STRLEN                                           ~9      !0
         17        SEND_VAL                                                 ~9
   11    18        STRLEN                                           ~10     !1
         19        SEND_VAL                                                 ~10
   12    20        INIT_FCALL                                               'password_hash'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 '2y'
         23        SEND_VAL                                                 <array>
         24        DO_ICALL                                         $11     
         25        SEND_VAR                                                 $11
   13    26        INIT_FCALL                                               'password_hash'
         27        SEND_VAR                                                 !1
         28        SEND_VAL                                                 '2y'
         29        SEND_VAL                                                 <array>
         30        DO_ICALL                                         $12     
         31        SEND_VAR                                                 $12
         32        DO_ICALL                                                 
   14    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.79 ms | 1396 KiB | 19 Q