3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person{ public $name; public $age; public function __construct(){ echo "constructor created.<br>"; } public function personName(){ echo "Person Name : ".$this->name; } public function personAge($age){ echo "Person Name : ".$this->age = $age; } } $personOne = new person; $personOne->name = "akbar hossain"; $personOne->personName(); echo "<br>"; $personOne->personAge(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8K0U
function name:  (null)
number of ops:  11
compiled vars:  !0 = $personOne
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'person'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        ASSIGN_OBJ                                               !0, 'name'
          4        OP_DATA                                                  'akbar+hossain'
   19     5        INIT_METHOD_CALL                                         !0, 'personName'
          6        DO_FCALL                                      0          
   20     7        ECHO                                                     '%3Cbr%3E'
   22     8        INIT_METHOD_CALL                                         !0, 'personAge'
          9        DO_FCALL                                      0          
   29    10      > RETURN                                                   1

Class Person:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8K0U
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'constructor+created.%3Cbr%3E'
    8     1      > RETURN                                                   null

End of function __construct

Function personname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8K0U
function name:  personName
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~0      'name'
          1        CONCAT                                           ~1      'Person+Name+%3A+', ~0
          2        ECHO                                                     ~1
   11     3      > RETURN                                                   null

End of function personname

Function personage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8K0U
function name:  personAge
number of ops:  6
compiled vars:  !0 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        ASSIGN_OBJ                                       ~1      'age'
          2        OP_DATA                                                  !0
          3        CONCAT                                           ~2      'Person+Name+%3A+', ~1
          4        ECHO                                                     ~2
   15     5      > RETURN                                                   null

End of function personage

End of class Person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.9 ms | 1399 KiB | 13 Q