3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.68 ms | 1396 KiB | 19 Q