3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public $post = [ "b" => "c" ]; const POST = "post"; public function get($key, $where) { return $this->{$where}[$key]; } } echo (new T)->get("b", T::POST);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kuu6i
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $0      'T'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'get'
          3        SEND_VAL_EX                                              'b'
          4        SEND_VAL_EX                                              'post'
          5        DO_FCALL                                      0  $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Class T:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kuu6i
function name:  get
number of ops:  6
compiled vars:  !0 = $key, !1 = $where
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        FETCH_OBJ_R                                      ~2      !1
          3        FETCH_DIM_R                                      ~3      ~2, !0
          4      > RETURN                                                   ~3
   12     5*     > RETURN                                                   null

End of function get

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.98 ms | 1393 KiB | 13 Q