3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface { public function testFunction($val); } abstract class TestClass implements TestInterface {} class TestSubClass extends TestClass { function testFunction($val) { return true; } } $tsc = new TestSubClass(); $tsc->testFunction('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FeW7
function name:  (null)
number of ops:  9
compiled vars:  !0 = $tsc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'testclass'
   10     1        DECLARE_CLASS                                            'testsubclass', 'testclass'
   16     2        NEW                                              $1      'TestSubClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   17     5        INIT_METHOD_CALL                                         !0, 'testFunction'
          6        SEND_VAL_EX                                              'test'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class TestInterface:
Function testfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FeW7
function name:  testFunction
number of ops:  2
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function testfunction

End of class TestInterface.

Class TestClass: [no user functions]
Class TestSubClass:
Function testfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FeW7
function name:  testFunction
number of ops:  3
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1      > RETURN                                                   <true>
   13     2*     > RETURN                                                   null

End of function testfunction

End of class TestSubClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.13 ms | 1393 KiB | 13 Q