3v4l.org

run code in 300+ 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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d7SKZ
function name:  (null)
number of ops:  6
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        ECHO                                                     !0
          5      > RETURN                                                   1

Class GetInfo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d7SKZ
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.0.0


preferences:
143.9 ms | 1395 KiB | 15 Q