3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.65 ms | 1387 KiB | 19 Q