3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Test { public function sayHoi1() { return 'hoi'; } } class StaticTest extends Test { public static function sayHoi2() { return 'hoi'; } } $t1 = new StaticTest(); echo $t1->sayHoi1(); echo StaticTest::sayHoi2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/18LpQ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'StaticTest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'sayHoi1'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
   23     6        INIT_STATIC_METHOD_CALL                                  'StaticTest', 'sayHoi2'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Class Test:
Function sayhoi1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/18LpQ
function name:  sayHoi1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'hoi'
    8     1*     > RETURN                                                   null

End of function sayhoi1

End of class Test.

Class StaticTest:
Function sayhoi2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/18LpQ
function name:  sayHoi2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   'hoi'
   16     1*     > RETURN                                                   null

End of function sayhoi2

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

End of function sayhoi1

End of class StaticTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.54 ms | 1394 KiB | 13 Q