3v4l.org

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

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TEIOd
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                       ~1      'arg2'
          3        OP_DATA                                                  $2
          4        ASSIGN_OBJ                                               'arg1'
          5        OP_DATA                                                  ~1
   10     6      > RETURN                                                   null

End of function __construct

Function tester:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TEIOd
function name:  tester
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'arg1'
          2        SEND_VAL                                                 ~0
          3        FETCH_OBJ_R                                      ~1      'arg2'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
   15     6      > RETURN                                                   null

End of function tester

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.77 ms | 1400 KiB | 15 Q