3v4l.org

run code in 300+ PHP versions simultaneously
<?php srand(0); var_dump(str_shuffle('abcdefghijklmnopqrstuvwxyz')); srand(0); var_dump(str_shuffle('abcdefghijklmnopqrstuvwxyz')); for ($i = 1; $i < 100; ++$i) { srand($i); var_dump(str_shuffle('abcdefghijklmnopqrstuvwxyz')); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 20
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 20
Branch analysis from position: 32
Branch analysis from position: 20
filename:       /in/OC9pu
function name:  (null)
number of ops:  33
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'srand'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'str_shuffle'
          5        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyz'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'srand'
         10        SEND_VAL                                                 0
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'str_shuffle'
         14        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyz'
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
    8    18        ASSIGN                                                   !0, 1
         19      > JMP                                                      ->30
    9    20    >   INIT_FCALL                                               'srand'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   10    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'str_shuffle'
         25        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyz'
         26        DO_ICALL                                         $9      
         27        SEND_VAR                                                 $9
         28        DO_ICALL                                                 
    8    29        PRE_INC                                                  !0
         30    >   IS_SMALLER                                               !0, 100
         31      > JMPNZ                                                    ~12, ->20
   11    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.32 ms | 1396 KiB | 19 Q