3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^(\d+)[.\s-]+(.+)/m'; $str = '01.text 2 - something 3 more'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ci2Z3
function name:  (null)
number of ops:  13
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E%28%5Cd%2B%29%5B.%5Cs-%5D%2B%28.%2B%29%2Fm'
    4     1        ASSIGN                                                   !1, '01.text%0A2+-+something%0A3+more'
    8     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
237.9 ms | 1002 KiB | 15 Q