3v4l.org

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

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

End of function __construct

Function shownota:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8svBc
function name:  showNota
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_OBJ_R                                      ~0      'nota'
          1        CONCAT                                           ~1      'Nota%3A+', ~0
          2        CONCAT                                           ~2      ~1, '%3Cbr+%2F%3E'
          3        ECHO                                                     ~2
   13     4      > RETURN                                                   null

End of function shownota

End of class ClassA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.35 ms | 1394 KiB | 13 Q