3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"; $chars2 = "0,1,2,3,4,5,6,7,8,9"; $arrayChars = explode("," , $chars); $arrayNumbers = explode("," , $chars2); $result = array_merge(array_rand(array_flip($arrayChars) , 3) , array_rand(array_flip($arrayNumbers) , 3)); shuffle($result); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RdPmf
function name:  (null)
number of ops:  38
compiled vars:  !0 = $chars, !1 = $chars2, !2 = $arrayChars, !3 = $arrayNumbers, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a%2Cb%2Cc%2Cd%2Ce%2Cf%2Cg%2Ch%2Ci%2Cj%2Ck%2Cl%2Cm%2Cn%2Co%2Cp%2Cq%2Cr%2Cs%2Ct%2Cu%2Cv%2Cw%2Cx%2Cy%2Cz'
    4     1        ASSIGN                                                   !1, '0%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    7     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2C'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
    9    12        INIT_FCALL                                               'array_merge'
         13        INIT_FCALL                                               'array_rand'
         14        INIT_FCALL                                               'array_flip'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
         18        SEND_VAL                                                 3
         19        DO_ICALL                                         $12     
         20        SEND_VAR                                                 $12
         21        INIT_FCALL                                               'array_rand'
         22        INIT_FCALL                                               'array_flip'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
         26        SEND_VAL                                                 3
         27        DO_ICALL                                         $14     
         28        SEND_VAR                                                 $14
         29        DO_ICALL                                         $15     
         30        ASSIGN                                                   !4, $15
   10    31        INIT_FCALL                                               'shuffle'
         32        SEND_REF                                                 !4
         33        DO_ICALL                                                 
   12    34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !4
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.65 ms | 1004 KiB | 19 Q