3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AB { protected $a; function __construct( $b ) { $this->a = $b; } function eko() { echo $this->a; } } $t = new AB('tutu'); $t->eko();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q7PpB
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      'AB'
          1        SEND_VAL_EX                                              'tutu'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   14     4        INIT_METHOD_CALL                                         !0, 'eko'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function __construct

Function eko:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q7PpB
function name:  eko
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~0      'a'
          1        ECHO                                                     ~0
   11     2      > RETURN                                                   null

End of function eko

End of class AB.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.43 ms | 1385 KiB | 13 Q