3v4l.org

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

Class Lang:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lENdZ
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'locale'
          1        OP_DATA                                                  'nl'
   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/lENdZ
function name:  get
number of ops:  7
compiled vars:  !0 = $testArg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   15     1        CONCAT                                           ~1      'Here+is+your+locale%3A+', !0
          2        CONCAT                                           ~2      ~1, '%2C'
          3        FETCH_OBJ_R                                      ~3      'locale'
          4        CONCAT                                           ~4      ~2, ~3
          5      > RETURN                                                   ~4
   16     6*     > 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/lENdZ
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      
   20     2        NEW                                              $2      'Lang'
          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
   21    11*     > RETURN                                                   null

End of function __callstatic

End of class Lang.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1395 KiB | 13 Q