3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'paypal_merchant_email="sample@ymail.com"|paypal_verified_only="0"|payment_currency=""|sandbox="1"|sandbox_merchant_email="sample@ymail.com"|payment_logos=""|debug="0"|status_pending="W"|status_success="O"|status_canceled="D"|countries=""|min_amount="0"|max_amount="0"|secure_post=""|ipn_test=""|no_shipping="0"|address_override="0"|cost_per_transaction="0"|cost_percent_total="0"|tax_id=0|'; preg_match_all('/\|(.*?)="(.*?)"/', '|'.$string, $matches); $result = array_combine($matches[1], $matches[2]); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rfBuc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $matches, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'paypal_merchant_email%3D%22sample%40ymail.com%22%7Cpaypal_verified_only%3D%220%22%7Cpayment_currency%3D%22%22%7Csandbox%3D%221%22%7Csandbox_merchant_email%3D%22sample%40ymail.com%22%7Cpayment_logos%3D%22%22%7Cdebug%3D%220%22%7Cstatus_pending%3D%22W%22%7Cstatus_success%3D%22O%22%7Cstatus_canceled%3D%22D%22%7Ccountries%3D%22%22%7Cmin_amount%3D%220%22%7Cmax_amount%3D%220%22%7Csecure_post%3D%22%22%7Cipn_test%3D%22%22%7Cno_shipping%3D%220%22%7Caddress_override%3D%220%22%7Ccost_per_transaction%3D%220%22%7Ccost_percent_total%3D%220%22%7Ctax_id%3D0%7C'
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5C%7C%28.%2A%3F%29%3D%22%28.%2A%3F%29%22%2F'
          3        CONCAT                                           ~4      '%7C', !0
          4        SEND_VAL                                                 ~4
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'array_combine'
          8        FETCH_DIM_R                                      ~6      !1, 1
          9        SEND_VAL                                                 ~6
         10        FETCH_DIM_R                                      ~7      !1, 2
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    8    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.81 ms | 1438 KiB | 16 Q