3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = str_repeat("0123456789", 100); $resource = fopen('data://text/plain,' . $string,'r'); stream_filter_append($resource, 'zlib.deflate', STREAM_FILTER_READ, 6); $compressed = stream_get_contents($resource); echo strlen($compressed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OOjF4
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string, !1 = $resource, !2 = $compressed
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'str_repeat'
          1        SEND_VAL                                                     '0123456789'
          2        SEND_VAL                                                     100
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !0, $3
    4     5        INIT_FCALL                                                   'fopen'
          6        CONCAT                                               ~5      'data%3A%2F%2Ftext%2Fplain%2C', !0
          7        SEND_VAL                                                     ~5
          8        SEND_VAL                                                     'r'
          9        DO_ICALL                                             $6      
         10        ASSIGN                                                       !1, $6
    5    11        INIT_FCALL                                                   'stream_filter_append'
         12        SEND_VAR                                                     !1
         13        SEND_VAL                                                     'zlib.deflate'
         14        SEND_VAL                                                     1
         15        SEND_VAL                                                     6
         16        DO_ICALL                                                     
    6    17        INIT_FCALL                                                   'stream_get_contents'
         18        SEND_VAR                                                     !1
         19        DO_ICALL                                             $9      
         20        ASSIGN                                                       !2, $9
    7    21        STRLEN                                               ~11     !2
         22        ECHO                                                         ~11
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.57 ms | 3279 KiB | 17 Q