3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "test"; echo "$password \n"; #$hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); $hashToStoreInDb = '$2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO'; echo " $hashToStoreInDb \n"; # $isPasswordCorrect = password_verify($password, $hashToStoreInDb); # echo "$isPasswordCorrect \n"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lEJFv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $password, !1 = $hashToStoreInDb, !2 = $hash_crypt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test'
    4     1        NOP                                                      
          2        FAST_CONCAT                                      ~4      !0, '+%0A'
          3        ECHO                                                     ~4
    8     4        ASSIGN                                                   !1, '%242y%2410%247fLak4uTUJicNkqs1ooypO1R3REmqlBdf%2FN1rprqPGNrZq8Gyl7tO'
    9     5        ROPE_INIT                                     3  ~7      '+'
          6        ROPE_ADD                                      1  ~7      ~7, !1
          7        ROPE_END                                      2  ~6      ~7, '+%0A'
          8        ECHO                                                     ~6
   17     9        INIT_FCALL                                               'crypt'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   18    14        ROPE_INIT                                     3  ~12     '+'
         15        ROPE_ADD                                      1  ~12     ~12, !2
         16        ROPE_END                                      2  ~11     ~12, '+%0A'
         17        ECHO                                                     ~11
   20    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.45 ms | 1386 KiB | 15 Q