3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct( public readonly int $foo ) { } } $f = new Foo(3); $f->foo = 5;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nqgpL
function name:  (null)
number of ops:  7
compiled vars:  !0 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $1      'Foo'
          1        SEND_VAL_EX                                                  3
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   10     4        ASSIGN_OBJ                                                   !0, 'foo'
          5        OP_DATA                                                      5
   11     6      > RETURN                                                       1

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

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.55 ms | 1457 KiB | 13 Q