3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD "Test" 'Test' `Test` (Test) EOD; preg_match_all("/.(\w+)./", $str,$match); foreach($match as &$m) $m = array_unique($m); var_dump($match);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/T2hnh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $match, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%22Test%22%0A%27Test%27%0A%60Test%60%0A%28Test%29'
   10     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F.%28%5Cw%2B%29.%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   11     6      > FE_RESET_RW                                      $5      !1, ->13
          7    > > FE_FETCH_RW                                              $5, !2, ->13
          8    >   INIT_FCALL                                               'array_unique'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
         12      > JMP                                                      ->7
         13    >   FE_FREE                                                  $5
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
227.82 ms | 1399 KiB | 19 Q