3v4l.org

run code in 500+ PHP versions simultaneously
<?php $regex = '/(["\'])(?:(?=(\\\\?))\2.)*?\1(*SKIP)(*F)|\[([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)]/s'; $str = '$output = "<input name=\'variable[key]\' has to be preserved as it is."; $output = \'Even this string variable[key] has to be preserved as it is.\'; $variable[key] = "WhatElse"; $result = $wso->RSLA("7050", $vegalot, "600", "WFID_OK_WEB","1300", $_POST[username]); if ($result[ECD] != 0) { if ($line=="AAAA" && in_array(substr($wso->lot,0,7),$lot_aaaa_list) && $lot[wafer][25]) {'; echo preg_replace($regex, "['\$3']", $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aOCAV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $regex, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%28%5B%22%27%5D%29%28%3F%3A%28%3F%3D%28%5C%5C%3F%29%29%5C2.%29%2A%3F%5C1%28%2ASKIP%29%28%2AF%29%7C%5C%5B%28%5Ba-zA-Z_%5Cx7f-%5Cxff%5D%5Ba-zA-Z0-9_%5Cx7f-%5Cxff%5D%2A%29%5D%2Fs'
    4     1        ASSIGN                                                       !1, '%24output+%3D+%22%3Cinput+name%3D%27variable%5Bkey%5D%27+has+to+be+preserved+as+it+is.%22%3B%0A%24output+%3D+%27Even+this+string+variable%5Bkey%5D+has+to+be+preserved+as+it+is.%27%3B%0A%0A%24variable%5Bkey%5D+%3D+%22WhatElse%22%3B%0A%24result+%3D+%24wso-%3ERSLA%28%227050%22%2C+%24vegalot%2C+%22600%22%2C+%22WFID_OK_WEB%22%2C%221300%22%2C+%24_POST%5Busername%5D%29%3B%0Aif+%28%24result%5BECD%5D+%21%3D+0%29+%7B%0Aif+%28%24line%3D%3D%22AAAA%22+%26%26+in_array%28substr%28%24wso-%3Elot%2C0%2C7%29%2C%24lot_aaaa_list%29+%26%26+%24lot%5Bwafer%5D%5B25%5D%29+%7B'
   11     2        FRAMELESS_ICALL_3                preg_replace        ~4      !0, '%5B%27%243%27%5D'
          3        OP_DATA                                                      !1
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.1 ms | 2042 KiB | 13 Q