3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "test"; echo "$password \n"; $hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); echo " $hashToStoreInDb \n"; $isPasswordCorrect = password_verify($password, $hashToStoreInDb); echo "$isPasswordCorrect \n"; #$password = "test33"; $hashToStoreInDb = "\$2y\$10\$JCqObDKNF9A21jyhI9.fIObxjiGUMPper3criJstIRZ8oZ2u0si25"; $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/nmiuB
function name:  (null)
number of ops:  32
compiled vars:  !0 = $password, !1 = $hashToStoreInDb, !2 = $isPasswordCorrect, !3 = $hash_crypt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test'
    4     1        NOP                                                      
          2        FAST_CONCAT                                      ~5      !0, '+%0A'
          3        ECHO                                                     ~5
    5     4        INIT_FCALL                                               'password_hash'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '2y'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    6     9        ROPE_INIT                                     3  ~9      '+'
         10        ROPE_ADD                                      1  ~9      ~9, !1
         11        ROPE_END                                      2  ~8      ~9, '+%0A'
         12        ECHO                                                     ~8
    7    13        INIT_FCALL                                               'password_verify'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !2, $11
    8    18        NOP                                                      
         19        FAST_CONCAT                                      ~13     !2, '+%0A'
         20        ECHO                                                     ~13
   11    21        ASSIGN                                                   !1, '%242y%2410%24JCqObDKNF9A21jyhI9.fIObxjiGUMPper3criJstIRZ8oZ2u0si25'
   12    22        INIT_FCALL                                               'crypt'
         23        SEND_VAR                                                 !0
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !3, $15
   13    27        ROPE_INIT                                     3  ~18     '+'
         28        ROPE_ADD                                      1  ~18     ~18, !3
         29        ROPE_END                                      2  ~17     ~18, '+%0A'
         30        ECHO                                                     ~17
   15    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.31 ms | 1396 KiB | 19 Q