3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class a { public $b = 'ilol'; public function youpi() { echo 'lol'; if (isset($this)) { echo $this->b; } } } class c extends a { public function yay() { a::youpi(); } } a::youpi(); $cc = new c(); $cc->yay();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZtDJC
function name:  (null)
number of ops:  11
compiled vars:  !0 = $cc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   24     3        INIT_STATIC_METHOD_CALL                                  'a', 'youpi'
          4        DO_FCALL                                      0          
   26     5        NEW                                              $3      'c'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
   27     8        INIT_METHOD_CALL                                         !0, 'yay'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class a:
Function youpi:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/ZtDJC
function name:  youpi
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'lol'
   11     1        ISSET_ISEMPTY_THIS                               ~0      
          2      > JMPZ                                                     ~0, ->5
   12     3    >   FETCH_OBJ_R                                      ~1      'b'
          4        ECHO                                                     ~1
   14     5    > > RETURN                                                   null

End of function youpi

End of class a.

Class c:
Function yay:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZtDJC
function name:  yay
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                  'a', 'youpi'
          1        DO_FCALL                                      0          
   21     2      > RETURN                                                   null

End of function yay

Function youpi:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/ZtDJC
function name:  youpi
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'lol'
   11     1        ISSET_ISEMPTY_THIS                               ~0      
          2      > JMPZ                                                     ~0, ->5
   12     3    >   FETCH_OBJ_R                                      ~1      'b'
          4        ECHO                                                     ~1
   14     5    > > RETURN                                                   null

End of function youpi

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.8 ms | 1396 KiB | 15 Q