3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { abstract public function __construct(); } class FooTest extends PHPUnit_Framework_TestCase { public function setUp() { $this->object = $this->getMockForAbstractClass('Foo'); } public function testNothing() { $this->assertTrue(true); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k86pY
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'footest', 'phpunit_framework_testcase'
   18     1      > RETURN                                                   1

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

End of function __construct

End of class Foo.

Class FooTest:
Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k86pY
function name:  setUp
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         'getMockForAbstractClass'
          1        SEND_VAL_EX                                              'Foo'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN_OBJ                                               'object'
          4        OP_DATA                                                  $1
   12     5      > RETURN                                                   null

End of function setup

Function testnothing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k86pY
function name:  testNothing
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_METHOD_CALL                                         'assertTrue'
          1        SEND_VAL_EX                                              <true>
          2        DO_FCALL                                      0          
   17     3      > RETURN                                                   null

End of function testnothing

End of class FooTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.29 ms | 1394 KiB | 13 Q