3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(~0); ini_set('display_errors', '1'); class c { function __construct() { echo "construct\r\n"; return false; } function c(){ return $this->__construct(); } function __destruct() { echo "destruct\r\n"; } } $c = new c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pben2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
          3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 '1'
          6        DO_ICALL                                                 
   11     7        NEW                                              $3      'c'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $3
         10      > RETURN                                                   1

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

End of function __construct

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

End of function c

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

End of function __destruct

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.77 ms | 1396 KiB | 17 Q