3v4l.org

run code in 300+ PHP versions simultaneously
<?php $login = "adam"; $password_plain = "admin1"; $password = password_hash($password_plain, PASSWORD_DEFAULT); // fetched from db $comparePassword = password_verify($password_plain,$password); var_dump( [ $login, $password_plain, $password, $comparePassword ] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/shFS9
function name:  (null)
number of ops:  20
compiled vars:  !0 = $login, !1 = $password_plain, !2 = $password, !3 = $comparePassword
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'adam'
    3     1        ASSIGN                                                   !1, 'admin1'
    4     2        INIT_FCALL                                               'password_hash'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '2y'
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    6     7        INIT_FCALL                                               'password_verify'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    9    12        INIT_FCALL                                               'var_dump'
   11    13        INIT_ARRAY                                       ~10     !0
   12    14        ADD_ARRAY_ELEMENT                                ~10     !1
   13    15        ADD_ARRAY_ELEMENT                                ~10     !2
   14    16        ADD_ARRAY_ELEMENT                                ~10     !3
         17        SEND_VAL                                                 ~10
    9    18        DO_ICALL                                                 
   16    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.51 ms | 1007 KiB | 16 Q