3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = json_encode( array( 'db_name' => 'name', 'table_name' => 'tname', 'link_col' => 'colname', 'prod_name_col' => 'pname') ); echo $json; $array = json_decode($json, true); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/57KXS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $json, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
    5     1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $2      
    3     3        ASSIGN                                                   !0, $2
   11     4        ECHO                                                     !0
   13     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
   15    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.15 ms | 1394 KiB | 19 Q