3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '$str1var ="str1"; $str2var = "str2"'; $pattern = '/\$(?P<variable>.*?)(?:\s|)=(?:\s|)"(?P<value>.*?)"/'; preg_match_all($pattern, $str, $output_array); var_dump($output_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aEsIc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $pattern, !2 = $output_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%24str1var+%3D%22str1%22%3B+%24str2var+%3D+%22str2%22'
    3     1        ASSIGN                                                   !1, '%2F%5C%24%28%3FP%3Cvariable%3E.%2A%3F%29%28%3F%3A%5Cs%7C%29%3D%28%3F%3A%5Cs%7C%29%22%28%3FP%3Cvalue%3E.%2A%3F%29%22%2F'
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1394 KiB | 17 Q