3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mom {} class Friend extends Mom { public function names(): array { return ['maria','joão']; } } $friend = new Friend(); $var_dump($friend->names());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Codjm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $friend, !1 = $var_dump
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Friend'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_DYNAMIC_CALL                                        !1
          4        INIT_METHOD_CALL                                         !0, 'names'
          5        DO_FCALL                                      0  $5      
          6        SEND_VAR_NO_REF_EX                                       $5
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Mom: [no user functions]
Class Friend:
Function names:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Codjm
function name:  names
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <array>
    7     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function names

End of class Friend.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.65 ms | 1384 KiB | 13 Q