3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'This is a test'; $compressed = gzcompress('This is a test'); echo '<br>'; for ($i=0; $i<strlen($compressed); $i++) { echo '['.$i.'] = '.ord($compressed[$i]).'<br>'; } ?> $compressed = gzcompress('This is a test'); echo '<br>'; for ($i=0; $i<strlen($compressed); $i++) { echo '['.$i.'] = '.ord($compressed[$i]).'<br>'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/voVj0
function name:  (null)
number of ops:  23
compiled vars:  !0 = $compressed, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'This+is+a+test'
    4     1        INIT_FCALL                                               'gzcompress'
          2        SEND_VAL                                                 'This+is+a+test'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        ECHO                                                     '%3Cbr%3E'
    6     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->18
    7     8    >   CONCAT                                           ~5      '%5B', !1
          9        CONCAT                                           ~6      ~5, '%5D+%3D+'
         10        INIT_FCALL                                               'ord'
         11        FETCH_DIM_R                                      ~7      !0, !1
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      ~6, $8
         15        CONCAT                                           ~10     ~9, '%3Cbr%3E'
         16        ECHO                                                     ~10
    6    17        PRE_INC                                                  !1
         18    >   STRLEN                                           ~12     !0
         19        IS_SMALLER                                               !1, ~12
         20      > JMPNZ                                                    ~13, ->8
   10    21    >   ECHO                                                     '%24compressed+%3D+gzcompress%28%27This+is+a+test%27%29%3B%0Aecho+%27%3Cbr%3E%27%3B%0Afor+%28%24i%3D0%3B+%24i%3Cstrlen%28%24compressed%29%3B+%24i%2B%2B%29+%7B%0A++++echo+%27%5B%27.%24i.%27%5D+%3D+%27.ord%28%24compressed%5B%24i%5D%29.%27%3Cbr%3E%27%3B%0A%7D%0A%3F%3E'
   15    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.83 ms | 1395 KiB | 17 Q