3v4l.org

run code in 300+ PHP versions simultaneously
<?php class t{ private $t; public $value; public function __construct($test = 'test12'){ echo $this->t; $this->t = $test; } public function __clone(){ echo 'clone'; } } $t = new t('tezd'); $t->value = 'clone?'; $t2 = new $t; var_dump($t, $t2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/khBGk
function name:  (null)
number of ops:  15
compiled vars:  !0 = $t, !1 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $2      't'
          1        SEND_VAL_EX                                              'tezd'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   19     4        ASSIGN_OBJ                                               !0, 'value'
          5        OP_DATA                                                  'clone%3F'
   21     6        FETCH_CLASS                                   0  $6      !0
          7        NEW                                              $7      $6
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $7
   23    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class t:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/khBGk
function name:  __construct
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      'test12'
    8     1        FETCH_OBJ_R                                      ~1      't'
          2        ECHO                                                     ~1
   10     3        ASSIGN_OBJ                                               't'
          4        OP_DATA                                                  !0
   11     5      > RETURN                                                   null

End of function __construct

Function __clone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/khBGk
function name:  __clone
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'clone'
   15     1      > RETURN                                                   null

End of function __clone

End of class t.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1396 KiB | 15 Q