3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('/(?J)(?<string>.*)1|(?<string>.*)2|(?<string>.*)3$/', "text2\npext3", $matches, PREG_SET_ORDER); var_dump($matches); preg_match_all('/(?J)(?<string>.*)1|(?<string>.*)2|(?<string>.*)3$/', "text2\npext3", $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fnm76
function name:  (null)
number of ops:  18
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%28%3FJ%29%28%3F%3Cstring%3E.%2A%291%7C%28%3F%3Cstring%3E.%2A%292%7C%28%3F%3Cstring%3E.%2A%293%24%2F'
          2        SEND_VAL                                                 'text2%0Apext3'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'preg_match_all'
         10        SEND_VAL                                                 '%2F%28%3FJ%29%28%3F%3Cstring%3E.%2A%291%7C%28%3F%3Cstring%3E.%2A%292%7C%28%3F%3Cstring%3E.%2A%293%24%2F'
         11        SEND_VAL                                                 'text2%0Apext3'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.06 ms | 1437 KiB | 15 Q