3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alph[]='Start'; foreach(range('a','z') as $val) { $alph[]=$val; } $makethisvalasarray='zaj'; $makethisvalasarray=str_split($makethisvalasarray); foreach($makethisvalasarray as $val) { $newarr[$alph[array_search($val,$alph)]]=array_search($val,$alph); } print_r($newarr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 31
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 31
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 11
filename:       /in/h1iiZ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $alph, !1 = $val, !2 = $makethisvalasarray, !3 = $newarr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'Start'
    3     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 'a'
          4        SEND_VAL                                                 'z'
          5        DO_ICALL                                         $5      
          6      > FE_RESET_R                                       $6      $5, ->11
          7    > > FE_FETCH_R                                               $6, !1, ->11
    5     8    >   ASSIGN_DIM                                               !0
          9        OP_DATA                                                  !1
    3    10      > JMP                                                      ->7
         11    >   FE_FREE                                                  $6
    8    12        ASSIGN                                                   !2, 'zaj'
    9    13        INIT_FCALL                                               'str_split'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !2, $9
   11    17      > FE_RESET_R                                       $11     !2, ->31
         18    > > FE_FETCH_R                                               $11, !1, ->31
   13    19    >   INIT_FCALL                                               'array_search'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        FETCH_DIM_R                                      ~13     !0, $12
         24        INIT_FCALL                                               'array_search'
         25        SEND_VAR                                                 !1
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $15     
         28        ASSIGN_DIM                                               !3, ~13
         29        OP_DATA                                                  $15
   11    30      > JMP                                                      ->18
         31    >   FE_FREE                                                  $11
   16    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.01 ms | 1396 KiB | 21 Q