3v4l.org

run code in 300+ PHP versions simultaneously
<?php class enkripsi { private $kunci1=array('a','b','c','d','e','f','g','h','i','j','k','l','m'); protected $kunci2=array('n','o','p','q','r','s','t','u','v','w','x','y','z'); private function cari($a) { if(in_array($a,$this->kunci1)) { $b=array_search($a,$this->kunci1); return $this->kunci2[$b]; } elseif(in_array($a,$this->kunci2)) { $b=array_search($a,$this->kunci2); return $this->kunci1[$b]; } } public function cetak($a) { echo $this->cari($a); } } $ob=new enkripsi(); $ob->cetak("n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HU4B7
function name:  (null)
number of ops:  7
compiled vars:  !0 = $ob
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'enkripsi'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'cetak'
          4        SEND_VAL_EX                                              'n'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class enkripsi:
Function cari:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HU4B7
function name:  cari
number of ops:  33
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'in_array'
          2        SEND_VAR                                                 !0
          3        FETCH_OBJ_R                                      ~2      'kunci1'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->17
   10     7    >   INIT_FCALL                                               'array_search'
          8        SEND_VAR                                                 !0
          9        FETCH_OBJ_R                                      ~4      'kunci1'
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
   11    13        FETCH_OBJ_R                                      ~7      'kunci2'
         14        FETCH_DIM_R                                      ~8      ~7, !1
         15      > RETURN                                                   ~8
         16*       JMP                                                      ->32
   13    17    >   INIT_FCALL                                               'in_array'
         18        SEND_VAR                                                 !0
         19        FETCH_OBJ_R                                      ~9      'kunci2'
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                         $10     
         22      > JMPZ                                                     $10, ->32
   15    23    >   INIT_FCALL                                               'array_search'
         24        SEND_VAR                                                 !0
         25        FETCH_OBJ_R                                      ~11     'kunci2'
         26        SEND_VAL                                                 ~11
         27        DO_ICALL                                         $12     
         28        ASSIGN                                                   !1, $12
   16    29        FETCH_OBJ_R                                      ~14     'kunci1'
         30        FETCH_DIM_R                                      ~15     ~14, !1
         31      > RETURN                                                   ~15
   18    32    > > RETURN                                                   null

End of function cari

Function cetak:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HU4B7
function name:  cetak
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        INIT_METHOD_CALL                                         'cari'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   22     5      > RETURN                                                   null

End of function cetak

End of class enkripsi.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.9 ms | 1400 KiB | 17 Q