3v4l.org

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

End of function __construct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.07 ms | 1397 KiB | 13 Q