3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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');
based on WtSJn
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:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  16     1        NEW                                              $1      :-5
         2        SEND_VAL_EX                                              'Ivan'
         3        DO_FCALL                                      0          
         4        ECHO                                                     $1
  18     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/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 7.3.0