3v4l.org

run code in 300+ 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:  19
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        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 6
          8        SEND_VAL                                                 -1
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
    8    13        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   11    14        SEND_VAL                                                 ~4
    6    15        DO_ICALL                                         $5      
   11    16        SEND_VAR                                                 $5
    5    17        DO_ICALL                                                 
   13    18      > 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}
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.0.0


preferences:
151.53 ms | 1015 KiB | 18 Q