3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = '$md5$2y$10$atGASXMlANJI2CUyCQqZEeOB6cPxXD8NxTa9E/sQTxfGL7Du9WDyi'; var_dump(substr($hash, 0, 4) === '$md5'); var_dump(password_verify(md5('test'), substr($hash, 4)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J748T
function name:  (null)
number of ops:  25
compiled vars:  !0 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%24md5%242y%2410%24atGASXMlANJI2CUyCQqZEeOB6cPxXD8NxTa9E%2FsQTxfGL7Du9WDyi'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 4
          6        DO_ICALL                                         $2      
          7        IS_IDENTICAL                                     ~3      $2, '%24md5'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'password_verify'
         12        INIT_FCALL                                               'md5'
         13        SEND_VAL                                                 'test'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 4
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.53 ms | 1395 KiB | 21 Q