3v4l.org

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

Function asd1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G93a5
function name:  asd1
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL_BY_NAME                                       'asd2'
          1        DO_FCALL                                      0          
   13     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/G93a5
function name:  asd2
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL_BY_NAME                                       'asd3'
          1        DO_FCALL                                      0          
   16     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/G93a5
function name:  asd3
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     '2'
   19     1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'error_reporting'
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      'error_reporting%3A+', $0
          5        CONCAT                                           ~2      ~1, '%0A'
          6        ECHO                                                     ~2
   20     7        BEGIN_SILENCE                                    ~3      
          8        INIT_FCALL                                               'error_log'
          9        SEND_VAL                                                 'asdasd'
         10        DO_ICALL                                                 
         11        END_SILENCE                                              ~3
   21    12        ECHO                                                     '3'
   22    13      > 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/G93a5
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     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/G93a5
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL_BY_NAME                                       'asd1'
          1        DO_FCALL                                      0          
    9     2      > RETURN                                                   null

End of function run

End of class asd.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.96 ms | 1400 KiB | 19 Q