3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! class MyClass { public function foo() { var_dump(__CLASS__,__METHOD__,__FUNCTION__); } } (new MyClass)->foo();
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ZqgQg
function name:  (null)
number of ops:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  10     1        NEW                                              $1      :-6
         2        DO_FCALL                                      0          
         3        INIT_METHOD_CALL                                         $1, 'foo'
         4        DO_FCALL                                      0          
         5      > RETURN                                                   1

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

End of function foo

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 7.2.0