3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("pcre.jit", false); $re = '/{(?:[^{}]|(?R))*}/'; $str = "{\"message\":\"cURL error 7: Failed to connect to 172.17.0.1 port 3000: Connection refused\",\"trace\":\"#0 /foo/bar/vendor/guzzlehttp/guzzle/src/Adapter/Curl/CurlAdapter.php(112): GuzzleHttp\Event\RequestEvents::emitError(Object(GuzzleHttp\Adapter\Transaction), Object(GuzzleHttp\Exception\AdapterException), Array)\n#1 /foo/bar/vendor/guzzlehttp/guzzle/src/Adapter/Curl/CurlAdapter.php(91): GuzzleHttp\Adapter\Curl\CurlAdapter->handleError(Object(GuzzleHttp\Adapter\Transaction), Array, Resource id #16)\n#2 /foo/bar/vendor/guzzlehttp/guzzle/src/Client.php(193): GuzzleHttp\Adapter\Curl\CurlAdapter->send(Object(GuzzleHttp\Adapter\Transaction))\n#3 /foo/bar/vendor/guzzlehttp/guzzle/src/Client.php(181): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))\n#4 /foo/bar/components/react/react.php(176): GuzzleHttp\Client->post('/project/666...', Array)\n#5 /foo/bar/components/react/react.php(136): react->rendererQuery('project', '{}', Array)\n#6 /foo/bar/controllers/ProjectController.php(50): react->render('project')\n#7 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(4126): ProjectController->actionIndex()\n#8 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(3639): CInlineAction->runWithParams(Array)\n#9 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6815): CController->runAction(Object(CInlineAction))\n#10 /foo/bar/components/Controller.php(578): CFilterChain->run()\n#11 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6857): Controller->filterEnsureSSL(Object(CFilterChain))\n#12 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6812): CInlineFilter->filter(Object(CFilterChain))\n#13 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6824): CFilterChain->run()\n#14 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(4017): CFilter->filter(Object(CFilterChain))\n#15 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6857): CController->filterAccessControl(Object(CFilterChain))\n#16 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6812): CInlineFilter->filter(Object(CFilterChain))\n#17 /foo/bar/components/Controller.php(258): CFilterChain->run()\n#18 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6857): Controller->filterEnsureCanonicalHost(Object(CFilterChain))\n#19 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6812): CInlineFilter->filter(Object(CFilterChain))\n#20 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(3629): CFilterChain->run()\n#21 /foo/bar/components/Controller.php(357): CController->runActionWithFilters(Object(CInlineAction), Array)\n#22 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(3614): Controller->runActionWithFilters(Object(CInlineAction), Array)\n#23 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(1761): CController->run('index')\n#24 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(1681): CWebApplication->runController('project/index')\n#25 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(1202): CWebApplication->processRequest()\n#26 /foo/bar/www/index.php(18): CApplication->run()\n#27 {main}\",\"json_encoded\":true}"; preg_match($re, $str, $matches); var_dump(array_keys(get_defined_constants(true)["pcre"], preg_last_error())); // Print the entire match result print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hf2gT
function name:  (null)
number of ops:  28
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'pcre.jit'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, '%2F%7B%28%3F%3A%5B%5E%7B%7D%5D%7C%28%3FR%29%29%2A%7D%2F'
    6     5        ASSIGN                                                   !1, '%7B%22message%22%3A%22cURL+error+7%3A+Failed+to+connect+to+172.17.0.1%0Aport+3000%3A+Connection+refused%22%2C%22trace%22%3A%22%230%0A%2Ffoo%2Fbar%2Fvendor%2Fguzzlehttp%2Fguzzle%2Fsrc%2FAdapter%2FCurl%2FCurlAdapter.php%28112%29%3A%0AGuzzleHttp%5CEvent%5CRequestEvents%3A%3AemitError%28Object%28GuzzleHttp%5CAdapter%5CTransaction%29%2C%0AObject%28GuzzleHttp%5CException%5CAdapterException%29%2C+Array%29%0A%231%0A%2Ffoo%2Fbar%2Fvendor%2Fguzzlehttp%2Fguzzle%2Fsrc%2FAdapter%2FCurl%2FCurlAdapter.php%2891%29%3A%0AGuzzleHttp%5CAdapter%5CCurl%5CCurlAdapter-%3EhandleError%28Object%28GuzzleHttp%5CAdapter%5CTransaction%29%2C%0AArray%2C+Resource+id+%2316%29%0A%232%0A%2Ffoo%2Fbar%2Fvendor%2Fguzzlehttp%2Fguzzle%2Fsrc%2FClient.php%28193%29%3A%0AGuzzleHttp%5CAdapter%5CCurl%5CCurlAdapter-%3Esend%28Object%28GuzzleHttp%5CAdapter%5CTransaction%29%29%0A%233%0A%2Ffoo%2Fbar%2Fvendor%2Fguzzlehttp%2Fguzzle%2Fsrc%2FClient.php%28181%29%3A%0AGuzzleHttp%5CClient-%3Esend%28Object%28GuzzleHttp%5CMessage%5CRequest%29%29%0A%234%0A%2Ffoo%2Fbar%2Fcomponents%2Freact%2Freact.php%28176%29%3A%0AGuzzleHttp%5CClient-%3Epost%28%27%2Fproject%2F666...%27%2C+Array%29%0A%235%0A%2Ffoo%2Fbar%2Fcomponents%2Freact%2Freact.php%28136%29%3A%0Areact-%3ErendererQuery%28%27project%27%2C+%27%7B%7D%27%2C+Array%29%0A%236%0A%2Ffoo%2Fbar%2Fcontrollers%2FProjectController.php%2850%29%3A%0Areact-%3Erender%28%27project%27%29%0A%237%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%284126%29%3A%0AProjectController-%3EactionIndex%28%29%0A%238%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%283639%29%3A%0ACInlineAction-%3ErunWithParams%28Array%29%0A%239%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286815%29%3A%0ACController-%3ErunAction%28Object%28CInlineAction%29%29%0A%2310%0A%2Ffoo%2Fbar%2Fcomponents%2FController.php%28578%29%3A+CFilterChain-%3Erun%28%29%0A%2311%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286857%29%3A%0AController-%3EfilterEnsureSSL%28Object%28CFilterChain%29%29%0A%2312%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286812%29%3A%0ACInlineFilter-%3Efilter%28Object%28CFilterChain%29%29%0A%2313%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286824%29%3A%0ACFilterChain-%3Erun%28%29%0A%2314%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%284017%29%3A%0ACFilter-%3Efilter%28Object%28CFilterChain%29%29%0A%2315%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286857%29%3A%0ACController-%3EfilterAccessControl%28Object%28CFilterChain%29%29%0A%2316%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286812%29%3A%0ACInlineFilter-%3Efilter%28Object%28CFilterChain%29%29%0A%2317%0A%2Ffoo%2Fbar%2Fcomponents%2FController.php%28258%29%3A+CFilterChain-%3Erun%28%29%0A%2318%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286857%29%3A%0AController-%3EfilterEnsureCanonicalHost%28Object%28CFilterChain%29%29%0A%2319%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%286812%29%3A%0ACInlineFilter-%3Efilter%28Object%28CFilterChain%29%29%0A%2320%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%283629%29%3A%0ACFilterChain-%3Erun%28%29%0A%2321+%2Ffoo%2Fbar%2Fcomponents%2FController.php%28357%29%3A%0ACController-%3ErunActionWithFilters%28Object%28CInlineAction%29%2C+Array%29%0A%2322%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%283614%29%3A%0AController-%3ErunActionWithFilters%28Object%28CInlineAction%29%2C+Array%29%0A%2323%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%281761%29%3A%0ACController-%3Erun%28%27index%27%29%0A%2324%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%281681%29%3A%0ACWebApplication-%3ErunController%28%27project%2Findex%27%29%0A%2325%0A%2Ffoo%2Fbar%2Flib%2Fpph-yii-repo%2Fframework%2Fyiilite.php%281202%29%3A%0ACWebApplication-%3EprocessRequest%28%29%0A%2326+%2Ffoo%2Fbar%2Fwww%2Findex.php%2818%29%3A%0ACApplication-%3Erun%28%29%0A%2327+%7Bmain%7D%22%2C%22json_encoded%22%3Atrue%7D'
   61     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
   62    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'array_keys'
         13        INIT_FCALL                                               'get_defined_constants'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $7      
         16        FETCH_DIM_R                                      ~8      $7, 'pcre'
         17        SEND_VAL                                                 ~8
         18        INIT_FCALL                                               'preg_last_error'
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                                 
   65    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.44 ms | 1400 KiB | 27 Q