3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Copyman { public $copyman; public function __construct($copyman){ $this->copyman =$copyman; } public function EchoU(){ echo "hi,i am {$this->copyman}!"; } } $copy1= new Copyman("#112"); $copy2= new Copyman("#213"); echo $copy1->copyman; $copy2->EchoU();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uM8hA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $copy1, !1 = $copy2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $2      'Copyman'
          1        SEND_VAL_EX                                              '%23112'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   16     4        NEW                                              $5      'Copyman'
          5        SEND_VAL_EX                                              '%23213'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   18     8        FETCH_OBJ_R                                      ~8      !0, 'copyman'
          9        ECHO                                                     ~8
   19    10        INIT_METHOD_CALL                                         !1, 'EchoU'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class Copyman:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uM8hA
function name:  __construct
number of ops:  4
compiled vars:  !0 = $copyman
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'copyman'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function __construct

Function echou:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uM8hA
function name:  EchoU
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ROPE_INIT                                     3  ~2      'hi%2Ci+am+'
          1        FETCH_OBJ_R                                      ~0      'copyman'
          2        ROPE_ADD                                      1  ~2      ~2, ~0
          3        ROPE_END                                      2  ~1      ~2, '%21'
          4        ECHO                                                     ~1
   12     5      > RETURN                                                   null

End of function echou

End of class Copyman.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.22 ms | 1399 KiB | 13 Q