3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public static function foo() { echo "foo" . PHP_EOL; } } $t = new test(); $t->foo();
based on BsK0f
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/24Wks
function name:  (null)
number of ops:  7
compiled vars:  !0 = $t
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  12     1        NEW                                              $2      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  13     4        INIT_METHOD_CALL                                         !0, 'foo'
         5        DO_FCALL                                      0          
         6      > RETURN                                                   1

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

End of function foo

End of class test.

Generated using Vulcan Logic Dumper, using php 7.1.0