3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = []; $message = 'Stack:arn:aws:cloudformation:us-west-2:717531488628:stack/magento-env-stage-mounttargets/9f7206d0-3e1e-11e6-941a-50d5ca0184f2 is in CREATE_FAILED state and can not be updated.'; preg_match('/~Stack\[(.+)\] is in ([A-Z_]+) state and can not be updated./', $message, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RsDu
function name:  (null)
number of ops:  11
compiled vars:  !0 = $matches, !1 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'Stack%3Aarn%3Aaws%3Acloudformation%3Aus-west-2%3A717531488628%3Astack%2Fmagento-env-stage-mounttargets%2F9f7206d0-3e1e-11e6-941a-50d5ca0184f2+is+in+CREATE_FAILED+state+and+can+not+be+updated.'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%7EStack%5C%5B%28.%2B%29%5C%5D+is+in+%28%5BA-Z_%5D%2B%29+state+and+can+not+be+updated.%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.62 ms | 939 KiB | 18 Q