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( array_chunk( json_decode('[' . substr($string, 6, -1) . ']'), 2 ), function ($result, $row) { $result[$row[0]] = $row[1]; return $result; } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b3Lva
function name:  (null)
number of ops:  21
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                                                   'array_chunk'
    8     4        INIT_FCALL                                                   'json_decode'
          5        FRAMELESS_ICALL_3                substr              ~2      !0, 6
          6        OP_DATA                                                      -1
          7        CONCAT                                               ~3      '%5B', ~2
          8        CONCAT                                               ~4      ~3, '%5D'
          9        SEND_VAL                                                     ~4
         10        DO_ICALL                                             $5      
         11        SEND_VAR                                                     $5
    9    12        SEND_VAL                                                     2
    7    13        DO_ICALL                                             $6      
    9    14        SEND_VAR                                                     $6
   11    15        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
   14    16        SEND_VAL                                                     ~7
    6    17        DO_ICALL                                             $8      
   14    18        SEND_VAR                                                     $8
    5    19        DO_ICALL                                                     
   16    20      > 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/b3Lva
function name:  {closure:/in/b3Lva:11}
number of ops:  8
compiled vars:  !0 = $result, !1 = $row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   12     2        FETCH_DIM_R                                          ~2      !1, 0
          3        FETCH_DIM_R                                          ~4      !1, 1
          4        ASSIGN_DIM                                                   !0, ~2
          5        OP_DATA                                                      ~4
   13     6      > RETURN                                                       !0
   14     7*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.07 ms | 1895 KiB | 17 Q