3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function vigenere(array $arr){ $output = "<table>\n"; // iterate over the array foreach($arr as $letter) { // Create output row $output .= '<tr><td>'.implode('</td><td>',$arr).'</td></tr>'.PHP_EOL; // rotate the array for the next row $arr[] = array_shift($arr); } $output .= '</table>'; return $output; } echo vigenere(range("A","Z"));

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mYEMk
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                                   'vigenere'
          1        INIT_FCALL                                                   'range'
          2        SEND_VAL                                                     'A'
          3        SEND_VAL                                                     'Z'
          4        DO_ICALL                                             $0      
          5        SEND_VAR                                                     $0
          6        DO_FCALL                                          0  $1      
          7        ECHO                                                         $1
          8      > RETURN                                                       1

Function vigenere:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/mYEMk
function name:  vigenere
number of ops:  19
compiled vars:  !0 = $arr, !1 = $output, !2 = $letter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        ASSIGN                                                       !1, '%3Ctable%3E%0A'
    8     2      > FE_RESET_R                                           $4      !0, ->15
          3    > > FE_FETCH_R                                                   $4, !2, ->15
   10     4    >   FRAMELESS_ICALL_2                implode             ~5      '%3C%2Ftd%3E%3Ctd%3E', !0
          5        CONCAT                                               ~6      '%3Ctr%3E%3Ctd%3E', ~5
          6        CONCAT                                               ~7      ~6, '%3C%2Ftd%3E%3C%2Ftr%3E'
          7        CONCAT                                               ~8      ~7, '%0A'
          8        ASSIGN_OP                                         8          !1, ~8
   12     9        INIT_FCALL                                                   'array_shift'
         10        SEND_REF                                                     !0
         11        DO_ICALL                                             $11     
         12        ASSIGN_DIM                                                   !0
         13        OP_DATA                                                      $11
    8    14      > JMP                                                          ->3
         15    >   FE_FREE                                                      $4
   14    16        ASSIGN_OP                                         8          !1, '%3C%2Ftable%3E'
   15    17      > RETURN                                                       !1
   16    18*     > RETURN                                                       null

End of function vigenere

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
202.31 ms | 6590 KiB | 16 Q