3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { protected $test; public function __construct() { $this->test = 'yow33'; } protected function get($test) { echo 'here is your property: ' . $test . $this->test; } public static function __callStatic($name, $arguments) { return call_user_func_array([new TestClass(), $name], $arguments); } } echo TestClass::get('argument hier');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h18Ij
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   INIT_STATIC_METHOD_CALL                                  'TestClass', 'get'
          1        SEND_VAL_EX                                              'argument+hier'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class TestClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h18Ij
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'test'
          1        OP_DATA                                                  'yow33'
   10     2      > RETURN                                                   null

End of function __construct

Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h18Ij
function name:  get
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   15     1        CONCAT                                           ~1      'here+is+your+property%3A+', !0
          2        FETCH_OBJ_R                                      ~2      'test'
          3        CONCAT                                           ~3      ~1, ~2
          4        ECHO                                                     ~3
   16     5      > RETURN                                                   null

End of function get

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h18Ij
function name:  __callStatic
number of ops:  12
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   21     2        NEW                                              $2      'TestClass'
          3        DO_FCALL                                      0          
          4        INIT_ARRAY                                       ~4      $2
          5        ADD_ARRAY_ELEMENT                                ~4      !0
          6        INIT_USER_CALL                                0          'call_user_func_array', ~4
          7        SEND_ARRAY                                               !1
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      0  $5      
         10      > RETURN                                                   $5
   22    11*     > RETURN                                                   null

End of function __callstatic

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1395 KiB | 13 Q