3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ [ 1638849672000, 0.0025 ], [ 1638849732000, 0.0008 ], [ 1638849792000, 0 ], [ 1638849852000, 0 ] ]; $data = array_map(function($x) { return (object)[ "time" => $x[0], "value" => $x[1] ]; }, $data); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uFBt5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   22     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   27     3        SEND_VAL                                                 ~2
          4        SEND_VAR                                                 !0
   22     5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
   29     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > 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/uFBt5
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   24     1        FETCH_DIM_R                                      ~1      !0, 0
          2        INIT_ARRAY                                       ~2      ~1, 'time'
   25     3        FETCH_DIM_R                                      ~3      !0, 1
          4        ADD_ARRAY_ELEMENT                                ~2      ~3, 'value'
          5        CAST                                          8  ~4      ~2
          6      > RETURN                                                   ~4
   27     7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.11 ms | 1000 KiB | 15 Q