3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct( public readonly string $foo, public readonly int $bar, public readonly array $baz, ) {} } var_dump(new Foo('foo', 42, []));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dd2fl
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Foo'
          2        SEND_VAL_EX                                              'foo'
          3        SEND_VAL_EX                                              42
          4        SEND_VAL_EX                                              <array>
          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/dd2fl
function name:  __construct
number of ops:  10
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        ASSIGN_OBJ                                               'foo'
          4        OP_DATA                                                  !0
          5        ASSIGN_OBJ                                               'bar'
          6        OP_DATA                                                  !1
          7        ASSIGN_OBJ                                               'baz'
          8        OP_DATA                                                  !2
    9     9      > RETURN                                                   null

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.86 ms | 997 KiB | 14 Q