3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samp = "This is an . example tex't using & my / Regex expression"; $samp = preg_replace('/[^A-Z0-9-\\ ]/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]; } print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 24
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 24
Branch analysis from position: 35
Branch analysis from position: 24
filename:       /in/1vaKr
function name:  (null)
number of ops:  39
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+tex%27t+using+%26+my+%2F+Regex+expression'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5EA-Z0-9-%5C+%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                                                      ->32
   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
   10    31        PRE_INC                                                  !3
         32    >   SUB                                              ~24     !2, 1
         33        IS_SMALLER                                               !3, ~24
         34      > JMPNZ                                                    ~25, ->24
   15    35    >   INIT_FCALL                                               'print_r'
         36        SEND_VAR                                                 !4
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.29 ms | 1388 KiB | 21 Q