3v4l.org

run code in 300+ PHP versions simultaneously
<?php $credentials = "Authorization: OAuth oauth_consumer_key=g3PdEVqZnBgaecDGpQjODcSLm, oauth_nonce=3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJRg3PdEVqZnBgaecDGpQjODcSLm1444413587932, oauth_signature=FHnxlpBl9h3ckb8GQLfw+D3FCaU=, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1444413587, oauth_token=3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJR, oauth_version=1.0"; $arrayCredentials = explode(',',$credentials); dd($arrayCredentials); $needle = 'oauth_signature'; $ret = array_keys(array_filter($arrayCredentials, function($var) use ($needle){ return strpos($var, $needle) !== false; })); echo($ret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/05eSX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $credentials, !1 = $arrayCredentials, !2 = $needle, !3 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Authorization%3A+OAuth+oauth_consumer_key%3Dg3PdEVqZnBgaecDGpQjODcSLm%2C+oauth_nonce%3D3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJRg3PdEVqZnBgaecDGpQjODcSLm1444413587932%2C+oauth_signature%3DFHnxlpBl9h3ckb8GQLfw%2BD3FCaU%3D%2C+oauth_signature_method%3DHMAC-SHA1%2C+oauth_timestamp%3D1444413587%2C+oauth_token%3D3346472044-54KLfYYlu9P1eAXN3Le3P8hgtzt4creTd41tfJR%2C+oauth_version%3D1.0'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL_BY_NAME                                       'dd'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    6     9        ASSIGN                                                   !2, 'oauth_signature'
    7    10        INIT_FCALL                                               'array_keys'
         11        INIT_FCALL                                               'array_filter'
         12        SEND_VAR                                                 !1
         13        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F05eSX%3A7%240'
         14        BIND_LEXICAL                                             ~9, !2
    9    15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                         $11     
    7    19        ASSIGN                                                   !3, $11
   10    20        ECHO                                                     !3
         21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F05eSX%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/05eSX
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $var, !1 = $needle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    8     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6        TYPE_CHECK                                  1018  ~3      $2
          7      > RETURN                                                   ~3
    9     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F05eSX%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.71 ms | 1396 KiB | 21 Q