3v4l.org

run code in 500+ PHP versions simultaneously
<?php $args = [ ...['z' => 2, 'x' => 3], ...['y' => 1, 'x' => 4], ]; class Foo { public function __construct(int $x, int $y, int $z) { echo <<<OUTPUT x = $x y = $y z = $z OUTPUT; } } new Foo(...$args);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YoqOB
function name:  (null)
number of ops:  7
compiled vars:  !0 = $args
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   20     1        NEW                                                  $2      'Foo'
          2        SEND_UNPACK                                                  !0
          3        CHECK_UNDEF_ARGS                                             
          4        DO_FCALL                                          1          
          5        FREE                                                         $2
          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/YoqOB
function name:  __construct
number of ops:  11
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
   13     3        ROPE_INIT                                         6  ~4      '++++x+%3D+'
          4        ROPE_ADD                                          1  ~4      ~4, !0
          5        ROPE_ADD                                          2  ~4      ~4, '%0A++++y+%3D+'
   14     6        ROPE_ADD                                          3  ~4      ~4, !1
          7        ROPE_ADD                                          4  ~4      ~4, '%0A++++z+%3D+'
   15     8        ROPE_END                                          5  ~3      ~4, !2
          9        ECHO                                                         ~3
   17    10      > RETURN                                                       null

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.85 ms | 1566 KiB | 13 Q