3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1111 2222 3333 4444 5555 6666"; if (preg_match('~\A(?:\d{4}\s?)+\z~', $str)) { print_r(preg_split('~\s~', $str)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/7HhgU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1111+2222+3333+4444+5555+6666'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5CA%28%3F%3A%5Cd%7B4%7D%5Cs%3F%29%2B%5Cz%7E'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->13
    5     6    >   INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'preg_split'
          8        SEND_VAL                                                 '%7E%5Cs%7E'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.15 ms | 1394 KiB | 19 Q