3v4l.org

run code in 300+ PHP versions simultaneously
<?php class person{ var $name; var $age; var $sex; function _construct($name,$sex,$age){ $this->name = $name; $this->age = $age; $this->sex = $sex; } } function read(){ $per = new person(); $name = person("dafa"); echo $name."study"; } $a = read();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M56vt
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'read'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Function read:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M56vt
function name:  read
number of ops:  10
compiled vars:  !0 = $per, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $2      'person'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   20     3        INIT_FCALL_BY_NAME                                       'person'
          4        SEND_VAL_EX                                              'dafa'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   21     7        CONCAT                                           ~7      !1, 'study'
          8        ECHO                                                     ~7
   22     9      > RETURN                                                   null

End of function read

Class person:
Function _construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M56vt
function name:  _construct
number of ops:  10
compiled vars:  !0 = $name, !1 = $sex, !2 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    8     3        ASSIGN_OBJ                                               'name'
          4        OP_DATA                                                  !0
    9     5        ASSIGN_OBJ                                               'age'
          6        OP_DATA                                                  !2
   10     7        ASSIGN_OBJ                                               'sex'
          8        OP_DATA                                                  !1
   11     9      > RETURN                                                   null

End of function _construct

End of class person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.84 ms | 1390 KiB | 14 Q