3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { return array('dragon' => 'bazinga'); } class Rawwr { public function fire() { return array('yolo' => 'boom it works'); } } echo test()['dragon']; $dragon = new Rawwr; echo $dragon->fire()['yolo'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yq4oa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $dragon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $1      
          2        FETCH_DIM_R                                      ~2      $1, 'dragon'
          3        ECHO                                                     ~2
   18     4        NEW                                              $3      'Rawwr'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   19     7        INIT_METHOD_CALL                                         !0, 'fire'
          8        DO_FCALL                                      0  $6      
          9        FETCH_DIM_R                                      ~7      $6, 'yolo'
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yq4oa
function name:  test
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 test

Class Rawwr:
Function fire:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yq4oa
function name:  fire
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   <array>
   13     1*     > RETURN                                                   null

End of function fire

End of class Rawwr.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.63 ms | 1401 KiB | 14 Q