3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "1234 4569 "; $allowedInputSeparators = array('\r\n', '\n', '\t', ',', ';', '|', '\s'); $pattern = '/(.+?)' . implode('|', $allowedInputSeparators) . '/'; preg_match_all($pattern, $value, $matches, PREG_SET_ORDER); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/igrIa
function name:  (null)
number of ops:  19
compiled vars:  !0 = $value, !1 = $allowedInputSeparators, !2 = $pattern, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1234%0A4569%0A'
    5     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%7C'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        CONCAT                                           ~7      '%2F%28.%2B%3F%29', $6
          7        CONCAT                                           ~8      ~7, '%2F'
          8        ASSIGN                                                   !2, ~8
    8     9        INIT_FCALL                                               'preg_match_all'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !3
         13        SEND_VAL                                                 2
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.72 ms | 1394 KiB | 19 Q