3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'islamic-sources'; parts_convertor($s); function parts_convertor($s){ $arr = array ( 'affiliate-sections' => 'بخش های وابسته', 'islamic-sources' => 'منابع اسلامی', 'dictionaries' => 'لغت نامه ها', 'sentences' => 'جملات', 'dream-interpretation' => 'تعبیر خواب', 'proverbs' => 'ضرب المثل ها', 'poetry' => 'اشعار' ); $s = $arr[$s]; return $s; } echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kgl2
function name:  (null)
number of ops:  6
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'islamic-sources'
    4     1        INIT_FCALL_BY_NAME                                       'parts_convertor'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   25     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function parts_convertor:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kgl2
function name:  parts_convertor
number of ops:  6
compiled vars:  !0 = $s, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN                                                   !1, <array>
   18     2        FETCH_DIM_R                                      ~3      !1, !0
          3        ASSIGN                                                   !0, ~3
   19     4      > RETURN                                                   !0
   21     5*     > RETURN                                                   null

End of function parts_convertor

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.42 ms | 1393 KiB | 13 Q