3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Station { public $platform = null; public function start() { $this->platform = new Platform(); $this->platform->ConfigurePlatform('test'); } public function getOrders() { return $this->platform->GetOrdersFromPlatform(); } } class Platform { private $orders = null; public function ConfigurePlatform($string) { $this->orders = $string; return $this; } public function GetOrdersFromPlatform() { return $this->orders; } } $test = new Station(); $test->start(); echo $test->platform->GetOrdersFromPlatform(); //or echo $test->getOrders();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UuTgb
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   38     0  E >   NEW                                                  $1      'Station'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   39     3        INIT_METHOD_CALL                                             !0, 'start'
          4        DO_FCALL                                          0          
   41     5        FETCH_OBJ_R                                          ~5      !0, 'platform'
          6        INIT_METHOD_CALL                                             ~5, 'GetOrdersFromPlatform'
          7        DO_FCALL                                          0  $6      
          8        ECHO                                                         $6
   43     9        INIT_METHOD_CALL                                             !0, 'getOrders'
         10        DO_FCALL                                          0  $7      
         11        ECHO                                                         $7
         12      > RETURN                                                       1

Class Station:
Function start:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UuTgb
function name:  start
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $1      'Platform'
          1        DO_FCALL                                          0          
          2        ASSIGN_OBJ                                                   'platform'
          3        OP_DATA                                                      $1
   11     4        FETCH_OBJ_R                                          ~3      'platform'
          5        INIT_METHOD_CALL                                             ~3, 'ConfigurePlatform'
          6        SEND_VAL_EX                                                  'test'
          7        DO_FCALL                                          0          
   12     8      > RETURN                                                       null

End of function start

Function getorders:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UuTgb
function name:  getOrders
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   FETCH_OBJ_R                                          ~0      'platform'
          1        INIT_METHOD_CALL                                             ~0, 'GetOrdersFromPlatform'
          2        DO_FCALL                                          0  $1      
          3      > RETURN                                                       $1
   17     4*     > RETURN                                                       null

End of function getorders

End of class Station.

Class Platform:
Function configureplatform:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UuTgb
function name:  ConfigurePlatform
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   RECV                                                 !0      
   26     1        ASSIGN_OBJ                                                   'orders'
          2        OP_DATA                                                      !0
   28     3        FETCH_THIS                                           ~2      
          4      > RETURN                                                       ~2
   29     5*     > RETURN                                                       null

End of function configureplatform

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

End of function getordersfromplatform

End of class Platform.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.33 ms | 2038 KiB | 13 Q