3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samp = "This is an . example text using & my / Regex expression"; $samp = preg_replace('/[^A-Z ]/i', "", $samp); $samp = str_replace(" "," ",$samp); $jk = explode(" ",$samp); $i = sizeof($jk); $j = 0; $array=""; for($j=0;$j<$i-1;$j++) { $array[] = $jk[$j]." ".$jk[$j+1]; echo $jk[$j]." ".$jk[$j+1]."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 24
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 24
Branch analysis from position: 42
Branch analysis from position: 24
filename:       /in/fcStt
function name:  (null)
number of ops:  43
compiled vars:  !0 = $samp, !1 = $jk, !2 = $i, !3 = $j, !4 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+an+.+example+text+using+%26+my+%2F+Regex+expression'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5EA-Z+%5D%2Fi'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    4     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '++'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !0, $8
    5    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '+'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !1, $10
    6    18        COUNT                                            ~12     !1
         19        ASSIGN                                                   !2, ~12
    7    20        ASSIGN                                                   !3, 0
    9    21        ASSIGN                                                   !4, ''
   10    22        ASSIGN                                                   !3, 0
         23      > JMP                                                      ->39
   12    24    >   FETCH_DIM_R                                      ~18     !1, !3
         25        CONCAT                                           ~19     ~18, '+'
         26        ADD                                              ~20     !3, 1
         27        FETCH_DIM_R                                      ~21     !1, ~20
         28        CONCAT                                           ~22     ~19, ~21
         29        ASSIGN_DIM                                               !4
         30        OP_DATA                                                  ~22
   13    31        FETCH_DIM_R                                      ~23     !1, !3
         32        CONCAT                                           ~24     ~23, '+'
         33        ADD                                              ~25     !3, 1
         34        FETCH_DIM_R                                      ~26     !1, ~25
         35        CONCAT                                           ~27     ~24, ~26
         36        CONCAT                                           ~28     ~27, '%0A'
         37        ECHO                                                     ~28
   10    38        PRE_INC                                                  !3
         39    >   SUB                                              ~30     !2, 1
         40        IS_SMALLER                                               !3, ~30
         41      > JMPNZ                                                    ~31, ->24
   14    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
279.11 ms | 1404 KiB | 20 Q