3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = str_repeat("hallo php",4096); $packed=gzcompress($original, -1, PHP_ZLIB_ENCODING_RAW); echo strlen($packed)." ".strlen($original)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aOa8S
function name:  (null)
number of ops:  19
compiled vars:  !0 = $original, !1 = $packed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'hallo+php'
          2        SEND_VAL                                                 4096
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'gzcompress'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 -1
          8        FETCH_CONSTANT                                   ~4      'PHP_ZLIB_ENCODING_RAW'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    5    12        STRLEN                                           ~7      !1
         13        CONCAT                                           ~8      ~7, '+'
         14        STRLEN                                           ~9      !0
         15        CONCAT                                           ~10     ~8, ~9
         16        CONCAT                                           ~11     ~10, '%0A'
         17        ECHO                                                     ~11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.13 ms | 1394 KiB | 17 Q