3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parserOutput = [ 'props' => [], ]; $tplDataRaw = '{"description": "Foo description", "label": "Foo", "baz": "Foo", "lorem": "Foo"}'; $tplData = gzencode($tplDataRaw, 9); echo "raw-strlen: " . strlen($tplDataRaw) . "\n"; echo "comp-strlen: " . strlen($tplData) . "\n"; var_dump(json_decode(gzdecode($tplData))); $parserOutput['props']['tplData'] = $tplData; echo "\n\n"; var_dump(json_encode($parserOutput)); echo json_last_error_msg();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cJttU
function name:  (null)
number of ops:  38
compiled vars:  !0 = $parserOutput, !1 = $tplDataRaw, !2 = $tplData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, '%7B%22description%22%3A+%22Foo+description%22%2C+%22label%22%3A+%22Foo%22%2C+%22baz%22%3A+%22Foo%22%2C+%22lorem%22%3A+%22Foo%22%7D'
    8     2        INIT_FCALL                                               'gzencode'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 9
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    9     7        STRLEN                                           ~7      !1
          8        CONCAT                                           ~8      'raw-strlen%3A+', ~7
          9        CONCAT                                           ~9      ~8, '%0A'
         10        ECHO                                                     ~9
   10    11        STRLEN                                           ~10     !2
         12        CONCAT                                           ~11     'comp-strlen%3A+', ~10
         13        CONCAT                                           ~12     ~11, '%0A'
         14        ECHO                                                     ~12
   11    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'json_decode'
         17        INIT_FCALL                                               'gzdecode'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $13     
         20        SEND_VAR                                                 $13
         21        DO_ICALL                                         $14     
         22        SEND_VAR                                                 $14
         23        DO_ICALL                                                 
   13    24        FETCH_DIM_W                                      $16     !0, 'props'
         25        ASSIGN_DIM                                               $16, 'tplData'
         26        OP_DATA                                                  !2
   15    27        ECHO                                                     '%0A%0A'
   17    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'json_encode'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $18     
         32        SEND_VAR                                                 $18
         33        DO_ICALL                                                 
   18    34        INIT_FCALL                                               'json_last_error_msg'
         35        DO_ICALL                                         $20     
         36        ECHO                                                     $20
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.44 ms | 1396 KiB | 25 Q