3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Usage 1: echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; // $2y$10$.vGA1O9wmRjrwAVXD98HNOgsNpDczlqm3Jq7KnEd1rVAGv3Fykk1a // Usage 2: $options = array('cost' => 11); echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9cdiC
function name:  (null)
number of ops:  15
compiled vars:  !0 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'password_hash'
          1        SEND_VAL                                                 'rasmuslerdorf'
          2        SEND_VAL                                                 '2y'
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      $1, '%0A'
          5        ECHO                                                     ~2
    7     6        ASSIGN                                                   !0, <array>
    8     7        INIT_FCALL                                               'password_hash'
          8        SEND_VAL                                                 'rasmuslerdorf'
          9        SEND_VAL                                                 '2y'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        CONCAT                                           ~5      $4, '%0A'
         13        ECHO                                                     ~5
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.05 ms | 1394 KiB | 15 Q