3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = json_decode('[{"id":"331","file_name":"3b1379e2496408dd4c865f5f63f96bf6","file_path":"https://path/3b1379e2496408dd4c865f5f63f96bf6.png"}, {"id":"332","file_name":"d0ef559473a061086592bceed0880a01","file_path":"https://path/d0ef559473a061086592bceed0880a01.png"}]'); echo json_encode(array_map(fn($value) => (object) ['url' => $value], array_column($array, 'file_path')), JSON_PRETTY_PRINT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vbguH
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'json_decode'
          1        SEND_VAL                                                     '%5B%7B%22id%22%3A%22331%22%2C%22file_name%22%3A%223b1379e2496408dd4c865f5f63f96bf6%22%2C%22file_path%22%3A%22https%3A%2F%2Fpath%2F3b1379e2496408dd4c865f5f63f96bf6.png%22%7D%2C%0A%7B%22id%22%3A%22332%22%2C%22file_name%22%3A%22d0ef559473a061086592bceed0880a01%22%2C%22file_path%22%3A%22https%3A%2F%2Fpath%2Fd0ef559473a061086592bceed0880a01.png%22%7D%5D'
          2        DO_ICALL                                             $1      
          3        ASSIGN                                                       !0, $1
    6     4        INIT_FCALL                                                   'json_encode'
          5        INIT_FCALL                                                   'array_map'
          6        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
          7        SEND_VAL                                                     ~3
          8        INIT_FCALL                                                   'array_column'
          9        SEND_VAR                                                     !0
         10        SEND_VAL                                                     'file_path'
         11        DO_ICALL                                             $4      
         12        SEND_VAR                                                     $4
         13        DO_ICALL                                             $5      
         14        SEND_VAR                                                     $5
         15        SEND_VAL                                                     128
         16        DO_ICALL                                             $6      
         17        ECHO                                                         $6
         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/vbguH
function name:  {closure:/in/vbguH:6}
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E >   RECV                                                 !0      
          1        INIT_ARRAY                                           ~1      !0, 'url'
          2        CAST                                              8  ~2      ~1
          3      > RETURN                                                       ~2
          4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.48 ms | 1780 KiB | 17 Q