3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { } } $r = new ReflectionClass('A'); $r = unserialize(serialize($r)); $a = $r->newInstanceArgs(array());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N5l6Q
function name:  (null)
number of ops:  16
compiled vars:  !0 = $r, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    8     4        INIT_FCALL                                               'unserialize'
          5        INIT_FCALL                                               'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
    9    11        INIT_METHOD_CALL                                         !0, 'newInstanceArgs'
         12        SEND_VAL_EX                                              <array>
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                                   !1, $8
         15      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N5l6Q
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 A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.08 ms | 1395 KiB | 17 Q