3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "1234 4567 4568 4569 4560, 3333AA 3334BB "; $allowedInputSeparators = array('\r\n', '\n', '\t', ',', ';', '|', '\s'); $pattern = '/(.+?)' . implode('|', $allowedInputSeparators) . '/'; preg_match_all($pattern, $value, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NmnkC
function name:  (null)
number of ops:  18
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%0A4567%0A4568%0A4569%0A4560%2C+3333AA%0A3334BB%0A'
    9     1        ASSIGN                                                   !1, <array>
   10     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
   12     9        INIT_FCALL                                               'preg_match_all'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !3
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.82 ms | 1394 KiB | 19 Q