3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'name' => [ 'Ace', 'James', 'Tommy' ], 'age' => [ 10, 20, 32 ] ]; $mainData = [ 'people' => array_map(function ($key, $value) { var_dump($key, $value); }, $data) ];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/49i92
function name:  (null)
number of ops:  9
compiled vars:  !0 = $data, !1 = $mainData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F49i92%3A17%240'
   19     3        SEND_VAL                                                 ~3
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        INIT_ARRAY                                       ~5      $4, 'people'
   16     7        ASSIGN                                                   !1, ~5
   20     8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F49i92%3A17%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/49i92
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   19     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F49i92%3A17%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.04 ms | 1395 KiB | 17 Q