3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Created by PhpStorm. * User: efik * Date: 30.06.15 * Time: 12:04 */ $bs = []; $haslo = "Badass"; $hash = password_hash($haslo, PASSWORD_BCRYPT); $verify = password_verify($haslo, $hash); // zle haslo ale ten sam hash $haslo2 = "Badas"; $hash2 = password_hash($haslo2, PASSWORD_BCRYPT); $verif2 = password_verify($haslo2, $hash); $bs[0] = [ "haslo" => $haslo, "hash" => $hash, "verify" => $verify ]; $bs[1] = [ "haslo" => $haslo2, "hash" => $hash2, "verify" => $verif2 ]; print_r($bs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RlbcH
function name:  (null)
number of ops:  37
compiled vars:  !0 = $bs, !1 = $haslo, !2 = $hash, !3 = $verify, !4 = $haslo2, !5 = $hash2, !6 = $verif2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 'Badass'
   10     2        INIT_FCALL                                               'password_hash'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '2y'
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !2, $9
   11     7        INIT_FCALL                                               'password_verify'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
   13    12        ASSIGN                                                   !4, 'Badas'
   14    13        INIT_FCALL                                               'password_hash'
         14        SEND_VAR                                                 !4
         15        SEND_VAL                                                 '2y'
         16        DO_ICALL                                         $14     
         17        ASSIGN                                                   !5, $14
   15    18        INIT_FCALL                                               'password_verify'
         19        SEND_VAR                                                 !4
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $16     
         22        ASSIGN                                                   !6, $16
   17    23        INIT_ARRAY                                       ~19     !1, 'haslo'
   18    24        ADD_ARRAY_ELEMENT                                ~19     !2, 'hash'
   19    25        ADD_ARRAY_ELEMENT                                ~19     !3, 'verify'
   16    26        ASSIGN_DIM                                               !0, 0
   19    27        OP_DATA                                                  ~19
   22    28        INIT_ARRAY                                       ~21     !4, 'haslo'
   23    29        ADD_ARRAY_ELEMENT                                ~21     !5, 'hash'
   24    30        ADD_ARRAY_ELEMENT                                ~21     !6, 'verify'
   21    31        ASSIGN_DIM                                               !0, 1
   24    32        OP_DATA                                                  ~21
   26    33        INIT_FCALL                                               'print_r'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.82 ms | 1388 KiB | 19 Q