3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $str = []; $characters = '0123456789abcdefghijklmnopqrstuvwxyz'; for($x = 0; $x < 50000; $x++) { $randomString = ''; for ($i = 0; $i < 32; $i++) { $randomString .= $characters[rand(0, strlen($characters) - 1)]; } $str[$randomString]++; } $collisions = array_filter(function($a) { return ($a > 1); }); print_r($collisions);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 10
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
Branch analysis from position: 7
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 10
Branch analysis from position: 21
Branch analysis from position: 10
filename:       /in/d9FBq
function name:  (null)
number of ops:  35
compiled vars:  !0 = $str, !1 = $characters, !2 = $x, !3 = $randomString, !4 = $i, !5 = $collisions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
    6     4        ASSIGN                                                   !1, '0123456789abcdefghijklmnopqrstuvwxyz'
    8     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->24
    9     7    >   ASSIGN                                                   !3, ''
   10     8        ASSIGN                                                   !4, 0
          9      > JMP                                                      ->19
   11    10    >   INIT_FCALL                                               'rand'
         11        SEND_VAL                                                 0
         12        STRLEN                                           ~12     !1
         13        SUB                                              ~13     ~12, 1
         14        SEND_VAL                                                 ~13
         15        DO_ICALL                                         $14     
         16        FETCH_DIM_R                                      ~15     !1, $14
         17        ASSIGN_OP                                     8          !3, ~15
   10    18        PRE_INC                                                  !4
         19    >   IS_SMALLER                                               !4, 32
         20      > JMPNZ                                                    ~18, ->10
   14    21    >   FETCH_DIM_RW                                     $19     !0, !3
         22        PRE_INC                                                  $19
    8    23        PRE_INC                                                  !2
         24    >   IS_SMALLER                                               !2, 50000
         25      > JMPNZ                                                    ~22, ->7
   16    26    >   INIT_FCALL                                               'array_filter'
         27        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fd9FBq%3A16%240'
   18    28        SEND_VAL                                                 ~23
         29        DO_ICALL                                         $24     
   16    30        ASSIGN                                                   !5, $24
   20    31        INIT_FCALL                                               'print_r'
         32        SEND_VAR                                                 !5
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fd9FBq%3A16%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d9FBq
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        IS_SMALLER                                       ~1      1, !0
          2      > RETURN                                                   ~1
   18     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fd9FBq%3A16%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1400 KiB | 21 Q