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 . ' is my name'; } } echo 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/ehahB
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'GetInfo'
          1        SEND_VAL_EX                                              'Ivan'
          2        DO_FCALL                                      0          
          3        ECHO                                                     $0
   18     4      > RETURN                                                   1

Class GetInfo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehahB
function name:  __construct
number of ops:  10
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        CONCAT                                           ~4      !0, '+is+my+name'
          8      > RETURN                                                   ~4
   12     9*     > RETURN                                                   null

End of function __construct

End of class GetInfo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.7 ms | 1395 KiB | 15 Q