3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function a() { echo 'construct'; } function __construct() { echo 'plop'; } function __invoke() { echo 'invoke'; } } new a(); a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oft17
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'a'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   17     3        INIT_FCALL_BY_NAME                                       'a'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function a

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

End of function __construct

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

End of function __invoke

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.81 ms | 1394 KiB | 13 Q