3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newResponse = [ [ "courseId" => 18, "courseDisplayName" => "qqq" ], [ "courseId" => 1, "courseDisplayName" => "ips", ], [ "courseId" => 18, "courseDisplayName" => "qqq", ], [ "courseId" => 1, "courseDisplayName" => "ips", ] ]; $key = [ [ "totalPoints" => 2, "percent" => 1.0, "id" => 2 ], [ "totalPoints" => 10, "percent" => 2, "id" => 3 ], [ "totalPoints" => 4, "percent" => 0.0, "id" => 6 ], [ "totalPoints" => 4, "percent" => 0.0, "id" => 5 ] ]; var_export(array_map('array_merge', $newResponse, $key));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XYd9j
function name:  (null)
number of ops:  11
compiled vars:  !0 = $newResponse, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, <array>
   45     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
262.41 ms | 1013 KiB | 15 Q