3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WorksIn4And8 { var $int; function __construct($int) { error_log('__construct()'); $this->int = $int; } function WorksIn4And8($int) { error_log('WorksIn4And8()'); $this->__construct($int); } function getInt() { return $this->int; } } $obj = new WorksIn4And8(48); var_dump($obj->getInt());
based on YCCE3
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZBTcC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $obj
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  25     0  E >   NEW                                              $1      :15
         1        SEND_VAL_EX                                              48
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $1
  27     4        INIT_FCALL                                               'var_dump'
         5        INIT_METHOD_CALL                                         !0, 'getInt'
         6        DO_FCALL                                      0  $4      
         7        SEND_VAR                                                 $4
         8        DO_ICALL                                                 
         9      > RETURN                                                   1

Class WorksIn4And8:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZBTcC
function name:  __construct
number of ops:  7
compiled vars:  !0 = $int
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   RECV                                             !0      
   9     1        INIT_FCALL                                               'error_log'
         2        SEND_VAL                                                 '__construct%28%29'
         3        DO_ICALL                                                 
  10     4        ASSIGN_OBJ                                               'int'
         5        OP_DATA                                                  !0
  11     6      > RETURN                                                   null

End of function __construct

Function worksin4and8:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZBTcC
function name:  WorksIn4And8
number of ops:  8
compiled vars:  !0 = $int
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  13     0  E >   RECV                                             !0      
  15     1        INIT_FCALL                                               'error_log'
         2        SEND_VAL                                                 'WorksIn4And8%28%29'
         3        DO_ICALL                                                 
  16     4        INIT_METHOD_CALL                                         '__construct'
         5        SEND_VAR_EX                                              !0
         6        DO_FCALL                                      0          
  17     7      > RETURN                                                   null

End of function worksin4and8

Function getint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZBTcC
function name:  getInt
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  21     0  E >   FETCH_OBJ_R                                      ~0      'int'
         1      > RETURN                                                   ~0
  22     2*     > RETURN                                                   null

End of function getint

End of class WorksIn4And8.

Generated using Vulcan Logic Dumper, using php 7.4.0