3v4l.org

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

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

End of function __construct

End of class GetInfo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
213.97 ms | 2961 KiB | 14 Q