3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = mt_rand(); echo "mt_rand: $str"; function d($fn) { global $str; $str = $fn($str); echo "$fn: $str\n"; } function zxcvbn($l){ global $str; d('md5'); d('metaphone'); d('sha1'); d('hex2bin'); d('bin2hex'); d('str_rot13'); d('str_shuffle'); d('strrev'); return substr($str, 0, $l); } echo zxcvbn(12);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/494eo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mt_rand'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    5     3        NOP                                                      
          4        FAST_CONCAT                                      ~3      'mt_rand%3A+', !0
          5        ECHO                                                     ~3
   30     6        INIT_FCALL                                               'zxcvbn'
          7        SEND_VAL                                                 12
          8        DO_FCALL                                      0  $4      
          9        ECHO                                                     $4
         10      > RETURN                                                   1

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/494eo
function name:  d
number of ops:  12
compiled vars:  !0 = $fn, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        BIND_GLOBAL                                              !1, 'str'
   10     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAR_EX                                              !1
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !1, $2
   12     6        ROPE_INIT                                     4  ~5      !0
          7        ROPE_ADD                                      1  ~5      ~5, '%3A+'
          8        ROPE_ADD                                      2  ~5      ~5, !1
          9        ROPE_END                                      3  ~4      ~5, '%0A'
         10        ECHO                                                     ~4
   13    11      > RETURN                                                   null

End of function d

Function zxcvbn:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/494eo
function name:  zxcvbn
number of ops:  33
compiled vars:  !0 = $l, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        BIND_GLOBAL                                              !1, 'str'
   18     2        INIT_FCALL                                               'd'
          3        SEND_VAL                                                 'md5'
          4        DO_FCALL                                      0          
   19     5        INIT_FCALL                                               'd'
          6        SEND_VAL                                                 'metaphone'
          7        DO_FCALL                                      0          
   20     8        INIT_FCALL                                               'd'
          9        SEND_VAL                                                 'sha1'
         10        DO_FCALL                                      0          
   21    11        INIT_FCALL                                               'd'
         12        SEND_VAL                                                 'hex2bin'
         13        DO_FCALL                                      0          
   22    14        INIT_FCALL                                               'd'
         15        SEND_VAL                                                 'bin2hex'
         16        DO_FCALL                                      0          
   23    17        INIT_FCALL                                               'd'
         18        SEND_VAL                                                 'str_rot13'
         19        DO_FCALL                                      0          
   24    20        INIT_FCALL                                               'd'
         21        SEND_VAL                                                 'str_shuffle'
         22        DO_FCALL                                      0          
   25    23        INIT_FCALL                                               'd'
         24        SEND_VAL                                                 'strrev'
         25        DO_FCALL                                      0          
   27    26        INIT_FCALL                                               'substr'
         27        SEND_VAR                                                 !1
         28        SEND_VAL                                                 0
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $10     
         31      > RETURN                                                   $10
   28    32*     > RETURN                                                   null

End of function zxcvbn

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1403 KiB | 26 Q