3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "1234 4569 "; var_dump(preg_match_all('/[0-9]{4}/', $value, $matches, PREG_PATTERN_ORDER)); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jol56
function name:  (null)
number of ops:  14
compiled vars:  !0 = $value, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1234%0A4569%0A'
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5B0-9%5D%7B4%7D%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.39 ms | 1394 KiB | 17 Q