3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'c_encrypted' => [ 'c_customer' => [ 'customer/company ID' ], 'c_brand' => [ 'brandname' ], 'c_productname' => [ 'product displayname' ], 'c_eventtype' => [ 'click / premium click' ] ] ]; $output = json_encode($arr, JSON_UNESCAPED_SLASHES); $output = str_replace('[', '{', $output); $output = str_replace(']', '}', $output); $output = str_replace(':', '=', $output); $output = str_replace(',', ';', $output); // $output = str_replace('[', '{', $output); var_dump($output); var_dump(' c_encrypted ={ c_customer ={ customer/company ID }; c_brand ={ brandname }; c_productname ={ product displayname }; c_eventtype ={ click / premium click };}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WWGNL
function name:  (null)
number of ops:  37
compiled vars:  !0 = $arr, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 64
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   22     6        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '%5B'
          8        SEND_VAL                                                 '%7B'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
   23    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '%5D'
         14        SEND_VAL                                                 '%7D'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !1, $7
   24    18        INIT_FCALL                                               'str_replace'
         19        SEND_VAL                                                 '%3A'
         20        SEND_VAL                                                 '%3D'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $9      
         23        ASSIGN                                                   !1, $9
   25    24        INIT_FCALL                                               'str_replace'
         25        SEND_VAL                                                 '%2C'
         26        SEND_VAL                                                 '%3B'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $11     
         29        ASSIGN                                                   !1, $11
   27    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                                 
   28    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAL                                                 '++c_encrypted+%3D%7B+c_customer+%3D%7B+customer%2Fcompany+ID+%7D%3B+c_brand+%3D%7B+brandname+%7D%3B+c_productname+%3D%7B+product+displayname+%7D%3B+c_eventtype+%3D%7B+click+%2F+premium+click+%7D%3B%7D'
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.14 ms | 1396 KiB | 19 Q