3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Raumschiff_fabrik { public $geschwindigkeit = 5; public $schild = 3; public $leben = 10; public $name; function __construct($neuer_name) { $this->name = $neuer_name; echo 'hier'; } public function nextText() { echo 'da'; } } $schiff1 = new Raumschiff_fabrik('Imhotep'); echo $schiff1->name; echo '<br />'; echo $schiff1->nextText(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iJC92
function name:  (null)
number of ops:  11
compiled vars:  !0 = $schiff1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'Raumschiff_fabrik'
          1        SEND_VAL_EX                                              'Imhotep'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   21     4        FETCH_OBJ_R                                      ~4      !0, 'name'
          5        ECHO                                                     ~4
   22     6        ECHO                                                     '%3Cbr+%2F%3E'
   23     7        INIT_METHOD_CALL                                         !0, 'nextText'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
   25    10      > RETURN                                                   1

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

End of function __construct

Function nexttext:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iJC92
function name:  nextText
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'da'
   17     1      > RETURN                                                   null

End of function nexttext

End of class Raumschiff_fabrik.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.65 ms | 1394 KiB | 13 Q