3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = <<<'EOT' { "result":[ { "type":"Residence", "street":"Piazza di Spagna", "city":"-4:0" }, { "type":"Residence", "street":"test", "city":"-4:1" } ] } EOT; $nodeNames = array_keys(json_decode($jsonString, true)['result'][0]); print_r($nodeNames);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AQakY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $jsonString, !1 = $nodeNames
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22result%22%3A%5B%0A+++++++%7B%0A++++++++++%22type%22%3A%22Residence%22%2C%0A++++++++++%22street%22%3A%22Piazza+di+Spagna%22%2C%0A++++++++++%22city%22%3A%22-4%3A0%22%0A+++++++%7D%2C%0A+++++++%7B%0A++++++++++%22type%22%3A%22Residence%22%2C%0A++++++++++%22street%22%3A%22test%22%2C%0A++++++++++%22city%22%3A%22-4%3A1%22%0A+++++++%7D%0A++++%5D%0A%7D'
   20     1        INIT_FCALL                                               'array_keys'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $3      
          6        FETCH_DIM_R                                      ~4      $3, 'result'
          7        FETCH_DIM_R                                      ~5      ~4, 0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
   22    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.84 ms | 1001 KiB | 16 Q