3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function __construct() {} } $c = new C(); $c->__construct(); class C2 { } $c2 = new C2(); $c->__construct();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xgd6W
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c, !1 = $c2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        INIT_METHOD_CALL                                         !0, '__construct'
          4        DO_FCALL                                      0          
   13     5        NEW                                              $6      'C2'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   14     8        INIT_METHOD_CALL                                         !0, '__construct'
          9        DO_FCALL                                      0          
         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/Xgd6W
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function __construct

End of class C.

Class C2: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.85 ms | 1393 KiB | 13 Q