3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '1 foo 2 ba_r 3 foo bar 4 fo-o'; preg_match_all( '/(\d+)\s+(.*)/m', $input, $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/hl2YR
function name:  (null)
number of ops:  11
compiled vars:  !0 = $input, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1+foo%0A2+++ba_r%0A3++foo+bar%0A4+++fo-o'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%29%5Cs%2B%28.%2A%29%2Fm'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.9 ms | 1394 KiB | 17 Q