3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function fn(){} function bar() { $x = ini_get_all(); $this->fn(); var_dump(func_get_args()); } static function Baz() { $x = ini_get_all(); var_dump(func_get_args()); } } (new Foo())->bar(1,2,3); Foo::Baz(1,2,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LasCs
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'Foo'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'bar'
          3        SEND_VAL_EX                                              1
          4        SEND_VAL_EX                                              2
          5        SEND_VAL_EX                                              3
          6        DO_FCALL                                      0          
   17     7        INIT_STATIC_METHOD_CALL                                  'Foo', 'Baz'
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 3
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

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

End of function fn

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LasCs
function name:  bar
number of ops:  10
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'ini_get_all'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    7     3        INIT_METHOD_CALL                                         'fn'
          4        DO_FCALL                                      0          
    8     5        INIT_FCALL                                               'var_dump'
          6        FUNC_GET_ARGS                                    ~4      
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    9     9      > RETURN                                                   null

End of function bar

Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LasCs
function name:  Baz
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'ini_get_all'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
   12     3        INIT_FCALL                                               'var_dump'
          4        FUNC_GET_ARGS                                    ~3      
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
   13     7      > RETURN                                                   null

End of function baz

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
238.67 ms | 1400 KiB | 17 Q