3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function qux(): void { $args = [ 'secondArgument' => 'arg', 'firstArgument' => true, ]; $this->bar(...$args); } private function bar(bool $firstArgument, string $secondArgument): void { // ... } } $foo = new Foo(); $foo->qux();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ts3aJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   22     3        INIT_METHOD_CALL                                         !0, 'qux'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function qux:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ts3aJ
function name:  qux
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_METHOD_CALL                                         'bar'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      1          
   13     5      > RETURN                                                   null

End of function qux

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ts3aJ
function name:  bar
number of ops:  3
compiled vars:  !0 = $firstArgument, !1 = $secondArgument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.25 ms | 1007 KiB | 13 Q