3v4l.org

run code in 300+ PHP versions simultaneously
<?php class asd { function __construct() { } function run() { asd1(); } } function asd1() { asd2(); } function asd2() { asd3(); } function asd3() { echo '2'; @error_log('asdasd'); echo '3'; } $asd = new asd(); echo '1'; ob_start(); @$asd->run(); $output = ob_get_clean(); //echo $output; echo '4';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8EIj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $asd, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $2      'asd'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   23     3        ECHO                                                     '1'
   24     4        INIT_FCALL                                               'ob_start'
          5        DO_ICALL                                                 
   25     6        BEGIN_SILENCE                                    ~6      
          7        INIT_METHOD_CALL                                         !0, 'run'
          8        DO_FCALL                                      0          
          9        END_SILENCE                                              ~6
   26    10        INIT_FCALL                                               'ob_get_clean'
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
   28    13        ECHO                                                     '4'
         14      > RETURN                                                   1

Function asd1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8EIj
function name:  asd1
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL_BY_NAME                                       'asd2'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   null

End of function asd1

Function asd2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8EIj
function name:  asd2
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL_BY_NAME                                       'asd3'
          1        DO_FCALL                                      0          
   15     2      > RETURN                                                   null

End of function asd2

Function asd3:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8EIj
function name:  asd3
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     '2'
   18     1        BEGIN_SILENCE                                    ~0      
          2        INIT_FCALL                                               'error_log'
          3        SEND_VAL                                                 'asdasd'
          4        DO_ICALL                                                 
          5        END_SILENCE                                              ~0
   19     6        ECHO                                                     '3'
   20     7      > RETURN                                                   null

End of function asd3

Class asd:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8EIj
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function __construct

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8EIj
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                       'asd1'
          1        DO_FCALL                                      0          
    8     2      > RETURN                                                   null

End of function run

End of class asd.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.82 ms | 1400 KiB | 19 Q