3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1396 KiB | 23 Q