3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait t1 { public function def1() { echo "d1\n"; } abstract function abstr1(); } trait t2 { public function def2() { echo "d2\n"; } abstract function abstr2(); } class Test { use t1,t2; public function abstr1(){ echo "abstr1\n"; } public function abstr2(){ echo "abstr2\n"; } } $test = new Test(); $test->def1(); $test->abstr1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXGHn
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   DECLARE_CLASS                                            'test'
   30     1        NEW                                              $1      'Test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   31     4        INIT_METHOD_CALL                                         !0, 'def1'
          5        DO_FCALL                                      0          
   32     6        INIT_METHOD_CALL                                         !0, 'abstr1'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class t1:
Function def1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXGHn
function name:  def1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'd1%0A'
    6     1      > RETURN                                                   null

End of function def1

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

End of function abstr1

End of class t1.

Class t2:
Function def2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXGHn
function name:  def2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'd2%0A'
   14     1      > RETURN                                                   null

End of function def2

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

End of function abstr2

End of class t2.

Class Test:
Function abstr1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXGHn
function name:  abstr1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   ECHO                                                     'abstr1%0A'
   23     1      > RETURN                                                   null

End of function abstr1

Function abstr2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SXGHn
function name:  abstr2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ECHO                                                     'abstr2%0A'
   26     1      > RETURN                                                   null

End of function abstr2

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1403 KiB | 13 Q