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); echo($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/2KZSC
function name:  (null)
number of ops:  20
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        ECHO                                                     !1
    6     7        ASSIGN                                                   !2, 'oauth_signature'
    7     8        INIT_FCALL                                               'array_keys'
          9        INIT_FCALL                                               'array_filter'
         10        SEND_VAR                                                 !1
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2KZSC%3A7%240'
         12        BIND_LEXICAL                                             ~8, !2
    9    13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                         $10     
    7    17        ASSIGN                                                   !3, $10
   10    18        ECHO                                                     !3
         19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F2KZSC%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2KZSC
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%2F2KZSC%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.49 ms | 1396 KiB | 21 Q