3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class A extends B { public function run() { B::iAmNotStatic(); } } class B { public function iAmNotStatic() {} } B::iAmNotStatic(); $a = new A(); $a->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8clA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        DECLARE_CLASS                                            'a', 'b'
   17     4        INIT_STATIC_METHOD_CALL                                  'B', 'iAmNotStatic'
          5        DO_FCALL                                      0          
   20     6        NEW                                              $3      'A'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
   21     9        INIT_METHOD_CALL                                         !0, 'run'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

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

End of function run

End of class A.

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

End of function iamnotstatic

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.91 ms | 1395 KiB | 15 Q