3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'Files("textfile1.txt", 7268474425, "textfile2.txt", 661204928, "textfile3.txt", 121034)'; var_export( array_reduce( preg_split('/[^,]+,[^,]+\K, /', substr($string, 6, -1)), function ($result, $string) { [$key, $result[$key]] = sscanf($string, '"%[^"]", %d'); return $result; } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fb9fm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Files%28%22textfile1.txt%22%2C+7268474425%2C+%22textfile2.txt%22%2C+661204928%2C+%22textfile3.txt%22%2C+121034%29'
    5     1        INIT_FCALL                                                   'var_export'
    6     2        INIT_FCALL                                                   'array_reduce'
    7     3        INIT_FCALL                                                   'preg_split'
          4        SEND_VAL                                                     '%2F%5B%5E%2C%5D%2B%2C%5B%5E%2C%5D%2B%5CK%2C+%2F'
          5        FRAMELESS_ICALL_3                substr              ~2      !0, 6
          6        OP_DATA                                                      -1
          7        SEND_VAL                                                     ~2
          8        DO_ICALL                                             $3      
          9        SEND_VAR                                                     $3
    8    10        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
   11    11        SEND_VAL                                                     ~4
    6    12        DO_ICALL                                             $5      
   11    13        SEND_VAR                                                     $5
    5    14        DO_ICALL                                                     
   13    15      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fb9fm
function name:  {closure:/in/Fb9fm:8}
number of ops:  14
compiled vars:  !0 = $result, !1 = $string, !2 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    9     2        INIT_FCALL                                                   'sscanf'
          3        SEND_VAR                                                     !1
          4        SEND_VAL                                                     '%22%25%5B%5E%22%5D%22%2C+%25d'
          5        DO_ICALL                                             $3      
          6        FETCH_LIST_R                                         $4      $3, 0
          7        ASSIGN                                                       !2, $4
          8        FETCH_LIST_R                                         $6      $3, 1
          9        ASSIGN_DIM                                                   !0, !2
         10        OP_DATA                                                      $6
         11        FREE                                                         $3
   10    12      > RETURN                                                       !0
   11    13*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
194.32 ms | 1899 KiB | 17 Q