3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { abstract public function __construct($alg); } class FooTest extends Foo { public function __construct($alg) { echo $alg; } public function setUp() { $this->object = 'xx'; } public function testNothing() { $this->object = 'y'; } } $foo = new FooTest('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qLoGt
function name:  (null)
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'FooTest'
          1        SEND_VAL_EX                                              'test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

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

End of function __construct

End of class Foo.

Class FooTest:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qLoGt
function name:  __construct
number of ops:  3
compiled vars:  !0 = $alg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ECHO                                                     !0
   12     2      > RETURN                                                   null

End of function __construct

Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qLoGt
function name:  setUp
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN_OBJ                                               'object'
          1        OP_DATA                                                  'xx'
   17     2      > 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/qLoGt
function name:  testNothing
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN_OBJ                                               'object'
          1        OP_DATA                                                  'y'
   22     2      > RETURN                                                   null

End of function testnothing

End of class FooTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.79 ms | 1395 KiB | 13 Q