3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Buku { public $judul; public $penulis; public function __construct($judul, $penulis) { $this->judul = $judul; $this->penulis = $penulis; echo "Buku '{$this->judul}' karya {$this->penulis} berhasil dibuat.<br>"; } public function __destruct() { echo "Buku '{$this->judul}' telah selesai dibaca.<br>"; } } // Membuat objek dari class Buku dengan data baru $buku1 = new Buku("Bumi", "Tere Liye"); $buku2 = new Buku("Ayat-Ayat Cinta", "Habiburrahman El Shirazy"); $buku3 = new Buku("Perahu Kertas", "Dee Lestari"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3IsVA
function name:  (null)
number of ops:  16
compiled vars:  !0 = $buku1, !1 = $buku2, !2 = $buku3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $3      'Buku'
          1        SEND_VAL_EX                                              'Bumi'
          2        SEND_VAL_EX                                              'Tere+Liye'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
   19     5        NEW                                              $6      'Buku'
          6        SEND_VAL_EX                                              'Ayat-Ayat+Cinta'
          7        SEND_VAL_EX                                              'Habiburrahman+El+Shirazy'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   20    10        NEW                                              $9      'Buku'
         11        SEND_VAL_EX                                              'Perahu+Kertas'
         12        SEND_VAL_EX                                              'Dee+Lestari'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $9
   21    15      > RETURN                                                   1

Class Buku:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3IsVA
function name:  __construct
number of ops:  15
compiled vars:  !0 = $judul, !1 = $penulis
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ASSIGN_OBJ                                               'judul'
          3        OP_DATA                                                  !0
    8     4        ASSIGN_OBJ                                               'penulis'
          5        OP_DATA                                                  !1
    9     6        ROPE_INIT                                     5  ~7      'Buku+%27'
          7        FETCH_OBJ_R                                      ~4      'judul'
          8        ROPE_ADD                                      1  ~7      ~7, ~4
          9        ROPE_ADD                                      2  ~7      ~7, '%27+karya+'
         10        FETCH_OBJ_R                                      ~5      'penulis'
         11        ROPE_ADD                                      3  ~7      ~7, ~5
         12        ROPE_END                                      4  ~6      ~7, '+berhasil+dibuat.%3Cbr%3E'
         13        ECHO                                                     ~6
   10    14      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3IsVA
function name:  __destruct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ROPE_INIT                                     3  ~2      'Buku+%27'
          1        FETCH_OBJ_R                                      ~0      'judul'
          2        ROPE_ADD                                      1  ~2      ~2, ~0
          3        ROPE_END                                      2  ~1      ~2, '%27+telah+selesai+dibaca.%3Cbr%3E'
          4        ECHO                                                     ~1
   14     5      > RETURN                                                   null

End of function __destruct

End of class Buku.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.82 ms | 1007 KiB | 13 Q