3v4l.org

run code in 300+ PHP versions simultaneously
<?php $validPassword = urlencode('111'); // Generate Random Salt using linux $fp = fopen('/dev/urandom', 'r'); $randomString = fread($fp, 32); fclose($fp); $salt = base64_encode($randomString); $hashed_password = crypt($validPassword, '$6$rounds=5000$'.$salt.'$');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i2OrM
function name:  (null)
number of ops:  29
compiled vars:  !0 = $validPassword, !1 = $fp, !2 = $randomString, !3 = $salt, !4 = $hashed_password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 '111'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 '%2Fdev%2Furandom'
          6        SEND_VAL                                                 'r'
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    5     9        INIT_FCALL                                               'fread'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 32
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    6    14        INIT_FCALL                                               'fclose'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'base64_encode'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !3, $12
    8    21        INIT_FCALL                                               'crypt'
         22        SEND_VAR                                                 !0
         23        CONCAT                                           ~14     '%246%24rounds%3D5000%24', !3
         24        CONCAT                                           ~15     ~14, '%24'
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                         $16     
         27        ASSIGN                                                   !4, $16
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.27 ms | 1395 KiB | 25 Q