3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = 'Joey Brooks Christian Carmine Boyce Rosario Rayford Winfred Scotty Hank Armand Devon Carl Antonia Kendrick Benny Dee Al Reyes Leonardo Duncan Gary Ollie Jacques Gerry German Wyatt Reginald Rodger Valentin Toby Rene Shayne Randall Santo Art Winston Bryant Justin Clinton Augustus Andrew Jody Reid Wilfredo Shelton Harris Kris Abe Chris'; $list = explode("\n", $list); array_unique($list); $letters = array('a', 'e', 'i', 'o', 'l'); $numbers = array('@', '3', '!', '0', '1'); foreach($list as $l){ $comma .= strtolower($l).", "; $reg .= "'".strtolower($l)."'=>'".str_replace($letters, $numbers, strtolower($l))."',"; $rep .= "'".str_replace($letters, $numbers, strtolower($l))."'=>'".strtolower($l)."',"; } echo '<textarea style="width:400px;height:200px"> ## LIST OF '.$comma.' $word_universe[]=array('.$reg.'); $word_universe[]=array('.$rep.'); </textarea>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 51
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 51
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 51
filename:       /in/1uELu
function name:  (null)
number of ops:  60
compiled vars:  !0 = $list, !1 = $letters, !2 = $numbers, !3 = $l, !4 = $comma, !5 = $reg, !6 = $rep
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Joey%0ABrooks%0AChristian%0ACarmine%0ABoyce%0ARosario%0ARayford%0AWinfred%0AScotty%0AHank%0AArmand%0ADevon%0ACarl%0AAntonia%0AKendrick%0ABenny%0ADee%0AAl%0AReyes%0ALeonardo%0ADuncan%0AGary%0AOllie%0AJacques%0AGerry%0AGerman%0AWyatt%0AReginald%0ARodger%0AValentin%0AToby%0ARene%0AShayne%0ARandall%0ASanto%0AArt%0AWinston%0ABryant%0AJustin%0AClinton%0AAugustus%0AAndrew%0AJody%0AReid%0AWilfredo%0AShelton%0AHarris%0AKris%0AAbe%0AChris'
   53     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !0, $8
   54     6        INIT_FCALL                                               'array_unique'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   56     9        ASSIGN                                                   !1, <array>
   57    10        ASSIGN                                                   !2, <array>
   59    11      > FE_RESET_R                                       $13     !0, ->51
         12    > > FE_FETCH_R                                               $13, !3, ->51
   60    13    >   INIT_FCALL                                               'strtolower'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $14     
         16        CONCAT                                           ~15     $14, '%2C+'
         17        ASSIGN_OP                                     8          !4, ~15
   61    18        INIT_FCALL                                               'strtolower'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $17     
         21        CONCAT                                           ~18     '%27', $17
         22        CONCAT                                           ~19     ~18, '%27%3D%3E%27'
         23        INIT_FCALL                                               'str_replace'
         24        SEND_VAR                                                 !1
         25        SEND_VAR                                                 !2
         26        INIT_FCALL                                               'strtolower'
         27        SEND_VAR                                                 !3
         28        DO_ICALL                                         $20     
         29        SEND_VAR                                                 $20
         30        DO_ICALL                                         $21     
         31        CONCAT                                           ~22     ~19, $21
         32        CONCAT                                           ~23     ~22, '%27%2C'
         33        ASSIGN_OP                                     8          !5, ~23
   62    34        INIT_FCALL                                               'str_replace'
         35        SEND_VAR                                                 !1
         36        SEND_VAR                                                 !2
         37        INIT_FCALL                                               'strtolower'
         38        SEND_VAR                                                 !3
         39        DO_ICALL                                         $25     
         40        SEND_VAR                                                 $25
         41        DO_ICALL                                         $26     
         42        CONCAT                                           ~27     '%27', $26
         43        CONCAT                                           ~28     ~27, '%27%3D%3E%27'
         44        INIT_FCALL                                               'strtolower'
         45        SEND_VAR                                                 !3
         46        DO_ICALL                                         $29     
         47        CONCAT                                           ~30     ~28, $29
         48        CONCAT                                           ~31     ~30, '%27%2C'
         49        ASSIGN_OP                                     8          !6, ~31
   59    50      > JMP                                                      ->12
         51    >   FE_FREE                                                  $13
   67    52        CONCAT                                           ~33     '%3Ctextarea+style%3D%22width%3A400px%3Bheight%3A200px%22%3E%0A%23%23+LIST+OF+%0A', !4
         53        CONCAT                                           ~34     ~33, '%0A%0A%24word_universe%5B%5D%3Darray%28'
   69    54        CONCAT                                           ~35     ~34, !5
         55        CONCAT                                           ~36     ~35, '%29%3B%0A%0A%24word_universe%5B%5D%3Darray%28'
   71    56        CONCAT                                           ~37     ~36, !6
         57        CONCAT                                           ~38     ~37, '%29%3B%0A%3C%2Ftextarea%3E'
         58        ECHO                                                     ~38
   74    59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.77 ms | 1400 KiB | 21 Q