3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/\$([\w|\d]*="[\\\w|\d]*)";/'; $string = '$x15e="\141\162\162a\x79\x5f\162e\x76\145r\x73\x65"; $x15e="\141\162\162a\x79\x5f\162e\x76\145r\x73\x65";'; preg_match_all($regex, $string, $matches); foreach ($matches as $match) { var_dump($match); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/TsWKp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $regex, !1 = $string, !2 = $matches, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5C%24%28%5B%5Cw%7C%5Cd%5D%2A%3D%22%5B%5C%5Cw%7C%5Cd%5D%2A%29%22%3B%2F'
    5     1        ASSIGN                                                   !1, '%24x15e%3D%22%5C141%5C162%5C162a%5Cx79%5Cx5f%5C162e%5Cx76%5C145r%5Cx73%5Cx65%22%3B+%24x15e%3D%22%5C141%5C162%5C162a%5Cx79%5Cx5f%5C162e%5Cx76%5C145r%5Cx73%5Cx65%22%3B'
    7     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    8     7      > FE_RESET_R                                       $7      !2, ->13
          8    > > FE_FETCH_R                                               $7, !3, ->13
    9     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
    8    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $7
   10    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.96 ms | 1395 KiB | 17 Q