3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class C { const const = 1; const static = 2; public static function new() {} public function function() {} public function class() {} public function for() {} public function while() {} public function abstract() {} public function public() {} protected function protected() {} private function private() {} } function call_c_function($c) { return $c->function(); } $c = C::new(); call_c_function($c); $c->class(); function something() {}
based on SjqJs
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  (null)
number of ops:  12
compiled vars:  !0 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  18     1        NOP                                                      
  22     2        INIT_STATIC_METHOD_CALL                                  'C', 'new'
         3        DO_FCALL                                      0  $2      
         4        ASSIGN                                                   !0, $2
  23     5        INIT_FCALL                                               'call_c_function'
         6        SEND_VAR                                                 !0
         7        DO_FCALL                                      0          
  24     8        INIT_METHOD_CALL                                         !0, 'class'
         9        DO_FCALL                                      0          
  26    10        NOP                                                      
        11      > RETURN                                                   1

Function call_c_function:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  call_c_function
number of ops:  5
compiled vars:  !0 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  18     0  E >   RECV                                             !0      
  19     1        INIT_METHOD_CALL                                         !0, 'function'
         2        DO_FCALL                                      0  $1      
         3      > RETURN                                                   $1
  20     4*     > RETURN                                                   null

End of function call_c_function

Function something:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  something
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  26     0  E > > RETURN                                                   null

End of function something

Class C:
Function new:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  new
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E > > RETURN                                                   null

End of function new

Function function:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  function
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E > > RETURN                                                   null

End of function function

Function class:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  class
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E > > RETURN                                                   null

End of function class

Function for:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  for
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  10     0  E > > RETURN                                                   null

End of function for

Function while:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  while
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  11     0  E > > RETURN                                                   null

End of function while

Function abstract:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  abstract
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  12     0  E > > RETURN                                                   null

End of function abstract

Function public:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  public
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  13     0  E > > RETURN                                                   null

End of function public

Function protected:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  protected
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  14     0  E > > RETURN                                                   null

End of function protected

Function private:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/fZrZL
function name:  private
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  15     0  E > > RETURN                                                   null

End of function private

End of class C.

Generated using Vulcan Logic Dumper, using php 7.3.0