3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { private $t; public function __construct($t) { $this->t = $t; } public function say() { echo $t; } } $t = new myClass("hello"); $t->say();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9GuY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'myClass'
          1        SEND_VAL_EX                                              'hello'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   14     4        INIT_METHOD_CALL                                         !0, 'say'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function __construct

Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L9GuY
function name:  say
number of ops:  2
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     !0
   10     1      > RETURN                                                   null

End of function say

End of class myClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.59 ms | 1394 KiB | 13 Q