3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExampleA { public function __construct(){ echo 'Método Mágico' . PHP_EOL; } public function ExampleA(){ echo 'Construtor descontinuado'; } } class ExampleB { public function ExampleB(){ echo 'Construtor descontinuado' . PHP_EOL; } } $e = new ExampleA; $e = new ExampleB;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2shH
function name:  (null)
number of ops:  7
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'ExampleA'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        NEW                                              $4      'ExampleB'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $4
          6      > RETURN                                                   1

Class ExampleA:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2shH
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'M%C3%A9todo+M%C3%A1gico%0A'
    8     1      > RETURN                                                   null

End of function __construct

Function examplea:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2shH
function name:  ExampleA
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Construtor+descontinuado'
   12     1      > RETURN                                                   null

End of function examplea

End of class ExampleA.

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

End of function exampleb

End of class ExampleB.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.77 ms | 1434 KiB | 13 Q