3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $string = str_pad("", 1000, "0123456789"); $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/gM6Ot
function name:  (null)
number of ops:  28
compiled vars:  !0 = $string, !1 = $resource, !2 = $compressed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'str_pad'
          4        SEND_VAL                                                 ''
          5        SEND_VAL                                                 1000
          6        SEND_VAL                                                 '0123456789'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    6     9        INIT_FCALL                                               'fopen'
         10        CONCAT                                           ~6      'data%3A%2F%2Ftext%2Fplain%2C', !0
         11        SEND_VAL                                                 ~6
         12        SEND_VAL                                                 'r'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    7    15        INIT_FCALL                                               'stream_filter_append'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 'zlib.deflate'
         18        SEND_VAL                                                 1
         19        SEND_VAL                                                 6
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'stream_get_contents'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $10     
         24        ASSIGN                                                   !2, $10
    9    25        STRLEN                                           ~12     !2
         26        ECHO                                                     ~12
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172 ms | 1395 KiB | 23 Q