3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump( json_decode( json_encode( array( 'foo' => 'bar' ) ) )['foo'] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvIL3
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'json_decode'
          2        INIT_FCALL                                                   'json_encode'
          3        SEND_VAL                                                     <array>
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                             $1      
          7        FETCH_DIM_R                                          ~2      $1, 'foo'
          8        SEND_VAL                                                     ~2
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.72 ms | 803 KiB | 11 Q