3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function getData() { return array('user_id'=>1); } } $foo->getData()['user_id'];
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/3QOAc
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   9     1        INIT_METHOD_CALL                                         !0, 'getData'
         2        DO_FCALL                                      0  $2      
         3        FETCH_DIM_R                                      $3      $2, 'user_id'
         4        FREE                                                     $3
         5      > RETURN                                                   1

Class Foo:
Function getdata:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/3QOAc
function name:  getData
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E > > RETURN                                                   <array>
   6     1*     > RETURN                                                   null

End of function getdata

End of class Foo.

Generated using Vulcan Logic Dumper, using php 7.3.0