3v4l.org

run code in 300+ PHP versions simultaneously
<?php $validPassword = urlencode('pass'); $salt = base64_encode('salt'); $hashed_password = crypt($validPassword, '$6$rounds=5000$'.$salt.'$'); echo $hashed_password; echo ' Current PHP version: ' . phpversion();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UdWjO
function name:  (null)
number of ops:  21
compiled vars:  !0 = $validPassword, !1 = $salt, !2 = $hashed_password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 'pass'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'base64_encode'
          5        SEND_VAL                                                 'salt'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'crypt'
          9        SEND_VAR                                                 !0
         10        CONCAT                                           ~7      '%246%24rounds%3D5000%24', !1
         11        CONCAT                                           ~8      ~7, '%24'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    5    15        ECHO                                                     !2
    6    16        INIT_FCALL                                               'phpversion'
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     '++Current+PHP+version%3A+', $11
         19        ECHO                                                     ~12
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1395 KiB | 21 Q