3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function test() : void { } } $f = new Foo; $result = $f->test(); var_dump(isset($result));
based on Omked
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/TlrFV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f, !1 = $result
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  12     1        NEW                                              $3      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
  14     4        INIT_METHOD_CALL                                         !0, 'test'
         5        DO_FCALL                                      0  $6      
         6        ASSIGN                                                   !1, $6
  16     7        INIT_FCALL                                               'var_dump'
         8        ISSET_ISEMPTY_VAR                           310378496  ~8      !1
         9        SEND_VAL                                                 ~8
        10        DO_ICALL                                                 
        11      > RETURN                                                   1

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

End of function test

End of class Foo.

Generated using Vulcan Logic Dumper, using php 7.1.0