3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samp = "This is an . example text using & my / Regex expression"; $samp = preg_replace('/[^\p{L}\p{N}]+/u', "", $samp); $samp = str_replace(" "," ",$samp); $jk = explode(" ",$samp); $i = sizeof($jk); $j = 0; for($j=0;$j<$i-1;$j++) { echo $jk[$j]." ".$jk[$j+1]."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 23
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 23
Branch analysis from position: 34
Branch analysis from position: 23
filename:       /in/qCeHL
function name:  (null)
number of ops:  35
compiled vars:  !0 = $samp, !1 = $jk, !2 = $i, !3 = $j
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%5E%5Cp%7BL%7D%5Cp%7BN%7D%5D%2B%2Fu'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    4     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '++'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !0, $7
    5    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '+'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !1, $9
    6    18        COUNT                                            ~11     !1
         19        ASSIGN                                                   !2, ~11
    7    20        ASSIGN                                                   !3, 0
    9    21        ASSIGN                                                   !3, 0
         22      > JMP                                                      ->31
   11    23    >   FETCH_DIM_R                                      ~15     !1, !3
         24        CONCAT                                           ~16     ~15, '+'
         25        ADD                                              ~17     !3, 1
         26        FETCH_DIM_R                                      ~18     !1, ~17
         27        CONCAT                                           ~19     ~16, ~18
         28        CONCAT                                           ~20     ~19, '%0A'
         29        ECHO                                                     ~20
    9    30        PRE_INC                                                  !3
         31    >   SUB                                              ~22     !2, 1
         32        IS_SMALLER                                               !3, ~22
         33      > JMPNZ                                                    ~23, ->23
   12    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.56 ms | 1396 KiB | 19 Q