3v4l.org

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

Class Example:
Function example:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qoPc3
function name:  Example
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'error_log'
          1        SEND_VAL                                                 'Example'
          2        DO_ICALL                                                 
    6     3        INIT_STATIC_METHOD_CALL                                  
          4        DO_FCALL                                      0          
    7     5      > RETURN                                                   null

End of function example

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qoPc3
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'error_log'
          1        SEND_VAL                                                 '__construct'
          2        DO_ICALL                                                 
   11     3      > RETURN                                                   null

End of function __construct

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.33 ms | 1009 KiB | 14 Q