3v4l.org

run code in 300+ PHP versions simultaneously
<?php $final[0] = "San"; $final[1] = "Antonio"; $final[2] = "de"; $final[3] = "Areco"; $final[4] = 1200; foreach ($final as $c => $v) { if (ctype_alpha($v)) { $vuelta1 = ($c+1); var_dump($v); if (ctype_alpha($final[$vuelta1])) { $final[$vuelta1] = $v." ".$final[$vuelta1]; unset($final[$c]); var_export($final); } } } var_dump($final);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 37
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 37
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 36
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 36
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 36
Branch analysis from position: 36
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/Y03IL
function name:  (null)
number of ops:  42
compiled vars:  !0 = $final, !1 = $v, !2 = $c, !3 = $vuelta1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'San'
    5     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  'Antonio'
    6     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  'de'
    7     6        ASSIGN_DIM                                               !0, 3
          7        OP_DATA                                                  'Areco'
    8     8        ASSIGN_DIM                                               !0, 4
          9        OP_DATA                                                  1200
   10    10      > FE_RESET_R                                       $9      !0, ->37
         11    > > FE_FETCH_R                                       ~10     $9, !1, ->37
         12    >   ASSIGN                                                   !2, ~10
   12    13        INIT_FCALL                                               'ctype_alpha'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $12     
         16      > JMPZ                                                     $12, ->36
   14    17    >   ADD                                              ~13     !2, 1
         18        ASSIGN                                                   !3, ~13
   15    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
   17    22        INIT_FCALL                                               'ctype_alpha'
         23        FETCH_DIM_R                                      ~16     !0, !3
         24        SEND_VAL                                                 ~16
         25        DO_ICALL                                         $17     
         26      > JMPZ                                                     $17, ->36
   19    27    >   CONCAT                                           ~19     !1, '+'
         28        FETCH_DIM_R                                      ~20     !0, !3
         29        CONCAT                                           ~21     ~19, ~20
         30        ASSIGN_DIM                                               !0, !3
         31        OP_DATA                                                  ~21
   20    32        UNSET_DIM                                                !0, !2
   22    33        INIT_FCALL                                               'var_export'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                                 
   10    36    > > JMP                                                      ->11
         37    >   FE_FREE                                                  $9
   27    38        INIT_FCALL                                               'var_dump'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.35 ms | 1405 KiB | 19 Q