3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function toto() { echo 'Hello World'; echo '<br />'; } public function dynToto() { $this->toto(); } public function statToto() { self::toto(); } } A::toto(); $a = new A(); $a->dynToto(); $a->statToto(); $a->toto();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AEEg9
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'toto'
          1        DO_FCALL                                      0          
   18     2        NEW                                              $2      'A'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   19     5        INIT_METHOD_CALL                                         !0, 'dynToto'
          6        DO_FCALL                                      0          
   20     7        INIT_METHOD_CALL                                         !0, 'statToto'
          8        DO_FCALL                                      0          
   21     9        INIT_METHOD_CALL                                         !0, 'toto'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class A:
Function toto:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AEEg9
function name:  toto
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Hello+World'
    5     1        ECHO                                                     '%3Cbr+%2F%3E'
    6     2      > RETURN                                                   null

End of function toto

Function dyntoto:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AEEg9
function name:  dynToto
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'toto'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function dyntoto

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

End of function stattoto

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.96 ms | 1395 KiB | 13 Q