3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace App; class Bar {}; class Baz {}; class Foo { public function __construct( private Bar $bar, private Baz $baz ) {} } var_dump(new Foo(new Bar, new Baz));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tN4HM
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   INIT_NS_FCALL_BY_NAME                                        'App%5Cvar_dump'
          1        NEW                                                  $0      'App%5CFoo'
          2        NEW                                                  $1      'App%5CBar'
          3        DO_FCALL                                          0          
          4        SEND_VAR_NO_REF_EX                                           $1
          5        NEW                                                  $3      'App%5CBaz'
          6        DO_FCALL                                          0          
          7        SEND_VAR_NO_REF_EX                                           $3
          8        DO_FCALL                                          0          
          9        SEND_VAR_NO_REF_EX                                           $0
         10        DO_FCALL                                          0          
         11      > RETURN                                                       1

Class App\Bar: [no user functions]
Class App\Baz: [no user functions]
Class App\Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tN4HM
function name:  __construct
number of ops:  7
compiled vars:  !0 = $bar, !1 = $baz
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   11     1        RECV                                                 !1      
   10     2        ASSIGN_OBJ                                                   'bar'
          3        OP_DATA                                                      !0
   11     4        ASSIGN_OBJ                                                   'baz'
          5        OP_DATA                                                      !1
   12     6      > RETURN                                                       null

End of function __construct

End of class App\Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
198.52 ms | 2024 KiB | 14 Q