3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $name = 'test'; public function __construct() { var_dump($this, $this->name); call_user_func(function () { var_dump($this, $this->name); call_user_func(function () { var_dump($this, $this->name); }); }); } } $test = new Test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NSJlp
function name:  (null)
number of ops:  4
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FNSJlp%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NSJlp
function name:  {closure}
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        FETCH_THIS                                       $1      
          4        FETCH_OBJ_R                                      ~2      $1, 'name'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
    9     7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNSJlp%3A9%241'
   11     8        INIT_USER_CALL                                0          'call_user_func', ~4
          9        DO_FCALL                                      0          
   12    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNSJlp%3A7%240

Function %00%7Bclosure%7D%2Fin%2FNSJlp%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NSJlp
function name:  {closure}
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        FETCH_THIS                                       $1      
          4        FETCH_OBJ_R                                      ~2      $1, 'name'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   11     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNSJlp%3A9%241

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NSJlp
function name:  __construct
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        FETCH_OBJ_R                                      ~1      'name'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    7     6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNSJlp%3A7%240'
   12     7        INIT_USER_CALL                                0          'call_user_func', ~3
          8        DO_FCALL                                      0          
   13     9      > RETURN                                                   null

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1400 KiB | 15 Q