3v4l.org

run code in 300+ PHP versions simultaneously
<?php $z = "hejsanhejsan";//$argv[1]; $x = str_split($z, 5); $l = "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345"; foreach ($x as $y) { foreach (str_split(strrev($y)) as $a => $w) { $y[$a] = ctype_upper($w); } $z .= $l[bindec($y)]; } echo $z; var_dump(str_split(strrev($y)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 31
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 31
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 24
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/XTLS9
function name:  (null)
number of ops:  43
compiled vars:  !0 = $z, !1 = $x, !2 = $l, !3 = $y, !4 = $w, !5 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hejsanhejsan'
    3     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 5
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    4     6        ASSIGN                                                   !2, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ012345'
    5     7      > FE_RESET_R                                       $10     !1, ->31
          8    > > FE_FETCH_R                                               $10, !3, ->31
    6     9    >   INIT_FCALL                                               'str_split'
         10        INIT_FCALL                                               'strrev'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $11     
         13        SEND_VAR                                                 $11
         14        DO_ICALL                                         $12     
         15      > FE_RESET_R                                       $13     $12, ->24
         16    > > FE_FETCH_R                                       ~14     $13, !4, ->24
         17    >   ASSIGN                                                   !5, ~14
    7    18        INIT_FCALL                                               'ctype_upper'
         19        SEND_VAR                                                 !4
         20        DO_ICALL                                         $17     
         21        ASSIGN_DIM                                               !3, !5
         22        OP_DATA                                                  $17
    6    23      > JMP                                                      ->16
         24    >   FE_FREE                                                  $13
    9    25        INIT_FCALL                                               'bindec'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                         $18     
         28        FETCH_DIM_R                                      ~19     !2, $18
         29        ASSIGN_OP                                     8          !0, ~19
    5    30      > JMP                                                      ->8
         31    >   FE_FREE                                                  $10
   11    32        ECHO                                                     !0
   13    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL                                               'str_split'
         35        INIT_FCALL                                               'strrev'
         36        SEND_VAR                                                 !3
         37        DO_ICALL                                         $21     
         38        SEND_VAR                                                 $21
         39        DO_ICALL                                         $22     
         40        SEND_VAR                                                 $22
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.71 ms | 1400 KiB | 23 Q