3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = json_decode(json_encode(array('a' => array('b','c'),'d' => array('e' => array('f','g'),'h' => 'i')))); var_dump($a->d->e);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/puG2l
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'json_decode'
         1        INIT_FCALL                                               'json_encode'
         2        SEND_VAL                                                 <array>
         3        DO_ICALL                                         $1      
         4        SEND_VAR                                                 $1
         5        DO_ICALL                                         $2      
         6        ASSIGN                                                   !0, $2
   5     7        INIT_FCALL                                               'var_dump'
         8        FETCH_OBJ_R                                      $4      !0, 'd'
         9        FETCH_OBJ_R                                      $5      $4, 'e'
        10        SEND_VAR                                                 $5
        11        DO_ICALL                                                 
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0