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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1388 KiB | 19 Q