3v4l.org

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

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

End of function __construct

End of class t.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.78 ms | 1399 KiB | 15 Q