3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Config { public function getConfig() { return $this->config ?? 'tst'; } } var_dump((new Config())->getConfig());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WDjOu
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Config'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'getConfig'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class Config:
Function getconfig:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WDjOu
function name:  getConfig
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_IS                                     ~0      'config'
          1        COALESCE                                         ~1      ~0
          2        QM_ASSIGN                                        ~1      'tst'
          3      > RETURN                                                   ~1
    8     4*     > RETURN                                                   null

End of function getconfig

End of class Config.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1394 KiB | 15 Q