3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someclass { function __construct(){ echo 'in_c'; }function someclass(){ echo 'in_s'; } } echo 'start'; new someclass;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QHP7F
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'start'
   11     1        NEW                                              $0      'someclass'
          2        DO_FCALL                                      0          
          3        FREE                                                     $0
          4      > RETURN                                                   1

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

End of function __construct

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

End of function someclass

End of class someclass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.85 ms | 1393 KiB | 13 Q