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( 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:  24
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        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 6
          8        SEND_VAL                                                 -1
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      '%5B', $2
         11        CONCAT                                           ~4      ~3, '%5D'
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
    9    15        SEND_VAL                                                 2
    7    16        DO_ICALL                                         $6      
    9    17        SEND_VAR                                                 $6
   11    18        DECLARE_LAMBDA_FUNCTION                          ~7      [0]
   14    19        SEND_VAL                                                 ~7
    6    20        DO_ICALL                                         $8      
   14    21        SEND_VAR                                                 $8
    5    22        DO_ICALL                                                 
   16    23      > 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}
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.0.0


preferences:
156.29 ms | 1015 KiB | 18 Q