3v4l.org

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

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

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.62 ms | 1905 KiB | 14 Q