3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "this/is a random one/two string foo/bar random - string words last/string/to/test"; preg_match_all("/(\w+\/\w+)[\s|$]/", $str, $output); Var_dump($output[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8p2g
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'this%2Fis+a+random+one%2Ftwo+string+foo%2Fbar+random+-+string+words+last%2Fstring%2Fto%2Ftest'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%5Cw%2B%5C%2F%5Cw%2B%29%5B%5Cs%7C%24%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'var_dump'
          7        FETCH_DIM_R                                      ~4      !1, 1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.11 ms | 1394 KiB | 17 Q