3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db_string = "{\"flugel en relinde\":\"1\",\"Bottom level 1\":\"4\",\"Underground level 2\":\"8\",\"Middle level 2\":\"6\"}"; function test(array $data = array()) { print_r($data); print_r(json_decode($data, true)); } test(json_decode($db_string, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aoaou
function name:  (null)
number of ops:  9
compiled vars:  !0 = $db_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22flugel+en+relinde%22%3A%221%22%2C%22Bottom+level+1%22%3A%224%22%2C%22Underground+level+2%22%3A%228%22%2C%22Middle+level+2%22%3A%226%22%7D'
   10     1        INIT_FCALL                                               'test'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aoaou
function name:  test
number of ops:  12
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      <array>
    6     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'print_r'
          5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
    8    11      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.6 ms | 1397 KiB | 18 Q