3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salts = ['abcdefghijklmnopqrstuvwxyz012345', 'saltsaltsaltsaltsaltsaltsaltsalt', 'pearpearpearpearpearpearpearpear', 'orangeorangeorangeorangeorangeor']; $passwords = ['password', 'password', 'apple', 'apple']; $basicPasswordSaltPermutations = []; $passwordsCount = count($passwords); for ($i = 0; $i < $passwordsCount; $i++) { $salt = $salts[$i]; $password = $passwords[$i]; $basicPasswordSaltPermutations[] = [$salt.$password, $password.$salt, $salt.$password.$salt]; } $algos = hash_algos(); var_dump($basicPasswordSaltPermutations);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
Branch analysis from position: 7
filename:       /in/HDoAd
function name:  (null)
number of ops:  30
compiled vars:  !0 = $salts, !1 = $passwords, !2 = $basicPasswordSaltPermutations, !3 = $passwordsCount, !4 = $i, !5 = $salt, !6 = $password, !7 = $algos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        COUNT                                            ~11     !1
          4        ASSIGN                                                   !3, ~11
    8     5        ASSIGN                                                   !4, 0
          6      > JMP                                                      ->21
    9     7    >   FETCH_DIM_R                                      ~14     !0, !4
          8        ASSIGN                                                   !5, ~14
   10     9        FETCH_DIM_R                                      ~16     !1, !4
         10        ASSIGN                                                   !6, ~16
   12    11        CONCAT                                           ~19     !5, !6
         12        INIT_ARRAY                                       ~20     ~19
         13        CONCAT                                           ~21     !6, !5
         14        ADD_ARRAY_ELEMENT                                ~20     ~21
         15        CONCAT                                           ~22     !5, !6
         16        CONCAT                                           ~23     ~22, !5
         17        ADD_ARRAY_ELEMENT                                ~20     ~23
         18        ASSIGN_DIM                                               !2
         19        OP_DATA                                                  ~20
    8    20        PRE_INC                                                  !4
         21    >   IS_SMALLER                                               !4, !3
         22      > JMPNZ                                                    ~25, ->7
   17    23    >   INIT_FCALL                                               'hash_algos'
         24        DO_ICALL                                         $26     
         25        ASSIGN                                                   !7, $26
   19    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.16 ms | 1396 KiB | 17 Q