3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(string $a) {} // @phpstan-ignore-line public function bar(string $bar): void {} } (new Foo(...['a' => 'b'])); (new Foo(...['b']))->bar(...['bar' => 'foo']); function foo(string $a, string $c): void { } foo(...['a' => 'b', 'c' => 'd']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7lTWP
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $0      'Foo'
          1        SEND_UNPACK                                              <array>
          2        CHECK_UNDEF_ARGS                                         
          3        DO_FCALL                                      1          
          4        FREE                                                     $0
   11     5        NEW                                              $2      'Foo'
          6        SEND_UNPACK                                              <array>
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      1          
          9        INIT_METHOD_CALL                                         $2, 'bar'
         10        SEND_UNPACK                                              <array>
         11        CHECK_UNDEF_ARGS                                         
         12        DO_FCALL                                      1          
   15    13        INIT_FCALL                                               'foo'
         14        SEND_UNPACK                                              <array>
         15        CHECK_UNDEF_ARGS                                         
         16        DO_FCALL                                      1          
         17      > RETURN                                                   1

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

End of function foo

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

End of function __construct

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.45 ms | 1089 KiB | 14 Q