3v4l.org

run code in 300+ PHP versions simultaneously
<?php $samp = "This is an . example text using & my / Regex expression"; $samp = preg_replace('/[^ \w]+/', "", $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 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 17
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 17
Branch analysis from position: 28
Branch analysis from position: 17
filename:       /in/S8Ksr
function name:  (null)
number of ops:  29
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+%5Cw%5D%2B%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    4     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    5    12        COUNT                                            ~9      !1
         13        ASSIGN                                                   !2, ~9
    6    14        ASSIGN                                                   !3, 0
    8    15        ASSIGN                                                   !3, 0
         16      > JMP                                                      ->25
   10    17    >   FETCH_DIM_R                                      ~13     !1, !3
         18        CONCAT                                           ~14     ~13, '+'
         19        ADD                                              ~15     !3, 1
         20        FETCH_DIM_R                                      ~16     !1, ~15
         21        CONCAT                                           ~17     ~14, ~16
         22        CONCAT                                           ~18     ~17, '%0A'
         23        ECHO                                                     ~18
    8    24        PRE_INC                                                  !3
         25    >   SUB                                              ~20     !2, 1
         26        IS_SMALLER                                               !3, ~20
         27      > JMPNZ                                                    ~21, ->17
   11    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.75 ms | 1396 KiB | 17 Q