3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function onSucces(); } class TestImplement implements Test { public function onSucces(): array { echo 'Hallo!'; return ['bla']; } } var_dump((new TestImplement())->onSucces());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hHNoe
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'testimplement'
   16     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $0      'TestImplement'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'onSucces'
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Test:
Function onsucces:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hHNoe
function name:  onSucces
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function onsucces

End of class Test.

Class TestImplement:
Function onsucces:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hHNoe
function name:  onSucces
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'Hallo%21'
   12     1      > RETURN                                                   <array>
   13     2*       VERIFY_RETURN_TYPE                                       
          3*     > RETURN                                                   null

End of function onsucces

End of class TestImplement.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.45 ms | 1395 KiB | 15 Q