3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function __construct($a, $b, $c = NULL) { } } $class = 'C'; $args = [1, 2]; $o = new $class(...$args);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UgkHj
function name:  (null)
number of ops:  9
compiled vars:  !0 = $class, !1 = $args, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'C'
   11     1        ASSIGN                                                   !1, <array>
   13     2        FETCH_CLASS                                   0  $5      !0
          3        NEW                                              $6      $5
          4        SEND_UNPACK                                              !1
          5        CHECK_UNDEF_ARGS                                         
          6        DO_FCALL                                      1          
          7        ASSIGN                                                   !2, $6
          8      > RETURN                                                   1

Class C:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UgkHj
function name:  __construct
number of ops:  4
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
    7     3      > RETURN                                                   null

End of function __construct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.95 ms | 1384 KiB | 13 Q