3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.13 ms | 1396 KiB | 19 Q