3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mail { public function generatePromoMailContent() { return array ( '#FIRSTNAME#' => 'First', '#LASTNAME#' => 'last', '#EMAIL#' => 'Mail', ); } } class ThisMail extends Mail { public function generatePromoMailContent() { $aContent = parent::generatePromoMailContent(); return array_merge($aContent, array( '#FIRSTNAME#' => 'replacedFirst', '#LASTNAME#' => 'replacedLast', '#SHOPURL#' => '', ) ); } } $oClass = new ThisMail(); var_dump($oClass->generatePromoMailContent());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y0Uma
function name:  (null)
number of ops:  9
compiled vars:  !0 = $oClass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   NEW                                              $1      'ThisMail'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   28     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'generatePromoMailContent'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Mail:
Function generatepromomailcontent:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y0Uma
function name:  generatePromoMailContent
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <array>
   10     1*     > RETURN                                                   null

End of function generatepromomailcontent

End of class Mail.

Class ThisMail:
Function generatepromomailcontent:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y0Uma
function name:  generatePromoMailContent
number of ops:  9
compiled vars:  !0 = $aContent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'generatePromoMailContent'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'array_merge'
          4        SEND_VAR                                                 !0
   19     5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $3      
          7      > RETURN                                                   $3
   24     8*     > RETURN                                                   null

End of function generatepromomailcontent

End of class ThisMail.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.59 ms | 1395 KiB | 17 Q