3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function foo() { var_dump(__FUNCTION__); var_dump(__METHOD__); } public static function bar() { var_dump(__FUNCTION__); var_dump(__METHOD__); } } function foo() { var_dump(__FUNCTION__); var_dump(__METHOD__); } $foo = new Foo(); $foo->foo(); Foo::bar(); foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFGrU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'foo'
          4        DO_FCALL                                      0          
   26     5        INIT_STATIC_METHOD_CALL                                  'Foo', 'bar'
          6        DO_FCALL                                      0          
   28     7        INIT_FCALL                                               'foo'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFGrU
function name:  foo
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                                 
   20     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 'foo'
          5        DO_ICALL                                                 
   21     6      > RETURN                                                   null

End of function foo

Class Foo:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFGrU
function name:  foo
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                                 
    7     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 'Foo%3A%3Afoo'
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFGrU
function name:  bar
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'bar'
          2        DO_ICALL                                                 
   13     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 'Foo%3A%3Abar'
          5        DO_ICALL                                                 
   14     6      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.66 ms | 1407 KiB | 16 Q