3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "meow"; $b = $a . "\0woef"; 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/HWgaF
function name:  (null)
number of ops:  22
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                                               'var_dump'
    7     4        STRLEN                                           ~5      !0
          5        SEND_VAL                                                 ~5
    8     6        STRLEN                                           ~6      !1
          7        SEND_VAL                                                 ~6
    9     8        INIT_FCALL                                               'password_hash'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '2y'
         11        SEND_VAL                                                 <array>
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
   10    14        INIT_FCALL                                               'password_hash'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 '2y'
         17        SEND_VAL                                                 <array>
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                                 
   11    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.5 ms | 1386 KiB | 17 Q