3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct( private string $author, ) {} } new A(author: 100);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9J0kF
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $0      'A'
          1        SEND_VAL_EX                                                  100, 'author'
          2        CHECK_UNDEF_ARGS                                             
          3        DO_FCALL                                          1          
          4        FREE                                                         $0
          5      > RETURN                                                       1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9J0kF
function name:  __construct
number of ops:  4
compiled vars:  !0 = $author
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        ASSIGN_OBJ                                                   'author'
          2        OP_DATA                                                      !0
    6     3      > RETURN                                                       null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.23 ms | 474 KiB | 7 Q