3v4l.org

run code in 300+ PHP versions simultaneously
<?php class sepatu { private $jenis_sepatu = "adidas"; public function tampilkan_sepatu_induk() { return $this->jenis_sepatu_induk; } } class sendal extends sepatu{ public function tampilkan_sepatu_induk() { return $this->jenis_sepatu_induk; } } $sepatu_baru = new sepatu(); $sandal_baru = new sandal(); echo $sepatu_baru->tampilkan_sepatu_induk(); // "adidas" echo $sendal_baru->tampilkan_sepatu_induk(); // Notice: Undefined property: sendal::$jenis_sepatu_induk ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DfZ5I
function name:  (null)
number of ops:  13
compiled vars:  !0 = $sepatu_baru, !1 = $sandal_baru, !2 = $sendal_baru
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $3      'sepatu'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   23     3        NEW                                              $6      'sandal'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   26     6        INIT_METHOD_CALL                                         !0, 'tampilkan_sepatu_induk'
          7        DO_FCALL                                      0  $9      
          8        ECHO                                                     $9
   29     9        INIT_METHOD_CALL                                         !2, 'tampilkan_sepatu_induk'
         10        DO_FCALL                                      0  $10     
         11        ECHO                                                     $10
   31    12      > RETURN                                                   1

Class sepatu:
Function tampilkan_sepatu_induk:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DfZ5I
function name:  tampilkan_sepatu_induk
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'jenis_sepatu_induk'
          1      > RETURN                                                   ~0
   10     2*     > RETURN                                                   null

End of function tampilkan_sepatu_induk

End of class sepatu.

Class sendal:
Function tampilkan_sepatu_induk:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DfZ5I
function name:  tampilkan_sepatu_induk
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   FETCH_OBJ_R                                      ~0      'jenis_sepatu_induk'
          1      > RETURN                                                   ~0
   18     2*     > RETURN                                                   null

End of function tampilkan_sepatu_induk

End of class sendal.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
212.5 ms | 1398 KiB | 13 Q