3v4l.org

run code in 300+ PHP versions simultaneously
<?php $commands = [ ',simpleImage. query Dark background. width 200. height 200. text %fortune_teller%', ',sayHello. %custom_id%', ',cmd. cat files.txt 2>/dev/null && find $HOME -type f -iname \*.mp3 -delete', ]; foreach ($commands as $command) { echo var_export(preg_match_all('~(?:^,([^.]+)|\G(?!^))\.(?= )(?: (\S+))? (.+?(?=\. |$))~', $command, $out) ? $out : [], true) . "\n--\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/QOusX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $commands, !1 = $command, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $4      !0, ->19
          2    > > FE_FETCH_R                                               $4, !1, ->19
    9     3    >   INIT_FCALL                                               'var_export'
          4        INIT_FCALL                                               'preg_match_all'
          5        SEND_VAL                                                 '%7E%28%3F%3A%5E%2C%28%5B%5E.%5D%2B%29%7C%5CG%28%3F%21%5E%29%29%5C.%28%3F%3D+%29%28%3F%3A+%28%5CS%2B%29%29%3F+%28.%2B%3F%28%3F%3D%5C.+%7C%24%29%29%7E'
          6        SEND_VAR                                                 !1
          7        SEND_REF                                                 !2
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->12
         10    >   QM_ASSIGN                                        ~6      !2
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~6      <array>
         13    >   SEND_VAL                                                 ~6
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $7      
         16        CONCAT                                           ~8      $7, '%0A--%0A'
         17        ECHO                                                     ~8
    8    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $4
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.52 ms | 1395 KiB | 17 Q