3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexp_arr = array('(word1)', '(word2)'); $value = 'word3'; $regexp_str = implode('[[:space:]]', $regexp_arr); $v1 = '[[:<:]](' . $value . ')'; echo $regexp_str . "\n"; echo $v1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vkhb6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $regexp_arr, !1 = $value, !2 = $regexp_str, !3 = $v1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'word3'
    4     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%5B%5B%3Aspace%3A%5D%5D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    5     7        CONCAT                                           ~8      '%5B%5B%3A%3C%3A%5D%5D%28', !1
          8        CONCAT                                           ~9      ~8, '%29'
          9        ASSIGN                                                   !3, ~9
    7    10        CONCAT                                           ~11     !2, '%0A'
         11        ECHO                                                     ~11
    8    12        ECHO                                                     !3
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.05 ms | 1009 KiB | 14 Q